Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65. |
| 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 34 | |
| 35 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 60 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | fi |
| 82 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 92 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 101 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 112 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | fi |
| 114 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 132 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 398 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | |
| 420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 430 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 438 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 439 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 440 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 441 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 452 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 453 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 454 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 455 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 463 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 470 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 471 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 485 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 491 | |
| 492 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 493 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 494 | else |
| 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
| 497 | fi |
| 498 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 501 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 510 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 511 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 512 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 513 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 514 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 520 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 537 | # |
| 538 | # Initializations. |
| 539 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 540 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 543 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 544 | cross_compiling=no |
| 545 | subdirs= |
| 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | # Identity of this package. |
| 550 | PACKAGE_NAME= |
| 551 | PACKAGE_TARNAME= |
| 552 | PACKAGE_VERSION= |
| 553 | PACKAGE_STRING= |
| 554 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 555 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 556 | |
| 557 | ac_unique_file="version.h" |
| 558 | # Factoring default headers for most tests. |
| 559 | ac_includes_default="\ |
| 560 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 561 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # include <sys/types.h> |
| 563 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 564 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # include <sys/stat.h> |
| 566 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 567 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 568 | # include <stdlib.h> |
| 569 | # include <stddef.h> |
| 570 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 571 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # include <stdlib.h> |
| 573 | # endif |
| 574 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 575 | #ifdef HAVE_STRING_H |
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # include <memory.h> |
| 578 | # endif |
| 579 | # include <string.h> |
| 580 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 581 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 582 | # include <strings.h> |
| 583 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 584 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 585 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 586 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 587 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 588 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 589 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 590 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 591 | # include <unistd.h> |
| 592 | #endif" |
| 593 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 594 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 595 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 596 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 597 | BUILD_LDFLAGS |
| 598 | BUILD_CFLAGS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 599 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 600 | DO_TEST_SUITE |
| 601 | ET_DIR |
| 602 | SS_DIR |
| 603 | LDFLAG_STATIC |
| 604 | root_sysconfdir |
| 605 | root_libdir |
| 606 | root_sbindir |
| 607 | root_bindir |
| 608 | root_prefix |
| 609 | UNIX_CMT |
| 610 | CYGWIN_CMT |
| 611 | LINUX_CMT |
| 612 | UNI_DIFF_OPTS |
| 613 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 614 | SOCKET_LIB |
| 615 | SIZEOF_LONG_LONG |
| 616 | SIZEOF_LONG |
| 617 | SIZEOF_INT |
| 618 | SIZEOF_SHORT |
| 619 | BUILD_CC |
| 620 | MAKEINFO |
| 621 | STRIP |
| 622 | AR |
| 623 | LDCONFIG |
| 624 | PERL |
| 625 | SED |
| 626 | AWK |
| 627 | CHMOD |
| 628 | RM |
| 629 | CP |
| 630 | MV |
| 631 | LN_S |
| 632 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 633 | ifNotGNUmake |
| 634 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 635 | BINARY_TYPE |
| 636 | POSUB |
| 637 | LTLIBINTL |
| 638 | LIBINTL |
| 639 | INTLLIBS |
| 640 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 641 | INTLOBJS |
| 642 | GENCAT |
| 643 | INSTOBJEXT |
| 644 | DATADIRNAME |
| 645 | CATOBJEXT |
| 646 | USE_INCLUDED_LIBINTL |
| 647 | BUILD_INCLUDED_LIBINTL |
| 648 | INTLBISON |
| 649 | LTLIBICONV |
| 650 | LIBICONV |
| 651 | HAVE_WPRINTF |
| 652 | HAVE_SNPRINTF |
| 653 | HAVE_ASPRINTF |
| 654 | HAVE_POSIX_PRINTF |
| 655 | GLIBC21 |
| 656 | ALLOCA |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 657 | EGREP |
| 658 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 659 | RANLIB |
| 660 | MSGMERGE |
| 661 | XGETTEXT |
| 662 | GMSGFMT |
| 663 | MSGFMT |
| 664 | USE_NLS |
| 665 | MKINSTALLDIRS |
| 666 | INSTALL_DATA |
| 667 | INSTALL_SCRIPT |
| 668 | INSTALL_PROGRAM |
| 669 | SET_MAKE |
| 670 | VERSION |
| 671 | PACKAGE |
| 672 | GETTEXT_PACKAGE |
| 673 | UUIDD_CMT |
| 674 | E2INITRD_MAN |
| 675 | E2INITRD_PROG |
| 676 | FSCK_MAN |
| 677 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 678 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 679 | RESIZER_CMT |
| 680 | IMAGER_CMT |
| 681 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 682 | QUOTA_CMT |
| 683 | DEPPROFILED_LIBQUOTA |
| 684 | PROFILED_LIBQUOTA |
| 685 | DEPSTATIC_LIBQUOTA |
| 686 | STATIC_LIBQUOTA |
| 687 | DEPLIBQUOTA |
| 688 | LIBQUOTA |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 689 | BLKID_CMT |
| 690 | DEPPROFILED_LIBBLKID |
| 691 | PROFILED_LIBBLKID |
| 692 | DEPSTATIC_LIBBLKID |
| 693 | STATIC_LIBBLKID |
| 694 | DEPLIBBLKID |
| 695 | LIBBLKID |
| 696 | UUID_CMT |
| 697 | DEPPROFILED_LIBUUID |
| 698 | PROFILED_LIBUUID |
| 699 | DEPSTATIC_LIBUUID |
| 700 | STATIC_LIBUUID |
| 701 | DEPLIBUUID |
| 702 | LIBUUID |
| 703 | PKG_CONFIG |
| 704 | TEST_IO_CMT |
| 705 | PRIVATE_LIBS_CMT |
| 706 | LDFLAG_DYNAMIC |
| 707 | PROFILED_LIB_EXT |
| 708 | STATIC_LIB_EXT |
| 709 | LIB_EXT |
| 710 | CHECKER_CMT |
| 711 | PROFILE_CMT |
| 712 | BSDLIB_CMT |
| 713 | ELF_CMT |
| 714 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 715 | Q |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame^] | 716 | ES |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 717 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 718 | LINK_BUILD_FLAGS |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 719 | SYMLINK_RELATIVE |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 720 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 721 | MAINTAINER_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 722 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 723 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 724 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 725 | OBJEXT |
| 726 | EXEEXT |
| 727 | ac_ct_CC |
| 728 | CPPFLAGS |
| 729 | LDFLAGS |
| 730 | CFLAGS |
| 731 | CC |
| 732 | host_os |
| 733 | host_vendor |
| 734 | host_cpu |
| 735 | host |
| 736 | build_os |
| 737 | build_vendor |
| 738 | build_cpu |
| 739 | build |
| 740 | E2FSPROGS_PKGVER |
| 741 | E2FSPROGS_VERSION |
| 742 | E2FSPROGS_DAY |
| 743 | E2FSPROGS_MONTH |
| 744 | E2FSPROGS_YEAR |
| 745 | target_alias |
| 746 | host_alias |
| 747 | build_alias |
| 748 | LIBS |
| 749 | ECHO_T |
| 750 | ECHO_N |
| 751 | ECHO_C |
| 752 | DEFS |
| 753 | mandir |
| 754 | localedir |
| 755 | libdir |
| 756 | psdir |
| 757 | pdfdir |
| 758 | dvidir |
| 759 | htmldir |
| 760 | infodir |
| 761 | docdir |
| 762 | oldincludedir |
| 763 | includedir |
| 764 | localstatedir |
| 765 | sharedstatedir |
| 766 | sysconfdir |
| 767 | datadir |
| 768 | datarootdir |
| 769 | libexecdir |
| 770 | sbindir |
| 771 | bindir |
| 772 | program_transform_name |
| 773 | prefix |
| 774 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 775 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 776 | PACKAGE_BUGREPORT |
| 777 | PACKAGE_STRING |
| 778 | PACKAGE_VERSION |
| 779 | PACKAGE_TARNAME |
| 780 | PACKAGE_NAME |
| 781 | PATH_SEPARATOR |
| 782 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 783 | ac_subst_files='MCONFIG |
| 784 | MAKEFILE_ELF |
| 785 | MAKEFILE_BSDLIB |
| 786 | MAKEFILE_PROFILE |
| 787 | MAKEFILE_CHECKER |
| 788 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 789 | ASM_TYPES_HEADER |
| 790 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 791 | ac_user_opts=' |
| 792 | enable_option_checking |
| 793 | with_diet_libc |
| 794 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 795 | with_ccopts |
| 796 | with_ldopts |
| 797 | with_root_prefix |
| 798 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 799 | enable_symlink_install |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 800 | enable_symlink_relative_symlinks |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 801 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 802 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 803 | enable_compression |
| 804 | enable_htree |
| 805 | enable_elf_shlibs |
| 806 | enable_bsd_shlibs |
| 807 | enable_profile |
| 808 | enable_checker |
| 809 | enable_jbd_debug |
| 810 | enable_blkid_debug |
| 811 | enable_testio_debug |
| 812 | enable_libuuid |
| 813 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 814 | enable_quota |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 815 | enable_debugfs |
| 816 | enable_imager |
| 817 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 818 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 819 | enable_fsck |
| 820 | enable_e2initrd_helper |
| 821 | enable_tls |
| 822 | enable_uuidd |
| 823 | enable_nls |
| 824 | with_gnu_ld |
| 825 | enable_rpath |
| 826 | with_libiconv_prefix |
| 827 | with_included_gettext |
| 828 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 829 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 830 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 831 | ac_precious_vars='build_alias |
| 832 | host_alias |
| 833 | target_alias |
| 834 | CC |
| 835 | CFLAGS |
| 836 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 837 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 838 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 839 | CPP |
| 840 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 841 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 842 | |
| 843 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 844 | ac_init_help= |
| 845 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 846 | ac_unrecognized_opts= |
| 847 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 848 | # The variables have the same names as the options, with |
| 849 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 850 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 851 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 852 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 853 | no_recursion= |
| 854 | prefix=NONE |
| 855 | program_prefix=NONE |
| 856 | program_suffix=NONE |
| 857 | program_transform_name=s,x,x, |
| 858 | silent= |
| 859 | site= |
| 860 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 861 | verbose= |
| 862 | x_includes=NONE |
| 863 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 864 | |
| 865 | # Installation directory options. |
| 866 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 867 | # and all the variables that are supposed to be based on exec_prefix |
| 868 | # by default will actually change. |
| 869 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 870 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 871 | bindir='${exec_prefix}/bin' |
| 872 | sbindir='${exec_prefix}/sbin' |
| 873 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 874 | datarootdir='${prefix}/share' |
| 875 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 876 | sysconfdir='${prefix}/etc' |
| 877 | sharedstatedir='${prefix}/com' |
| 878 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 879 | includedir='${prefix}/include' |
| 880 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 881 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 882 | infodir='${datarootdir}/info' |
| 883 | htmldir='${docdir}' |
| 884 | dvidir='${docdir}' |
| 885 | pdfdir='${docdir}' |
| 886 | psdir='${docdir}' |
| 887 | libdir='${exec_prefix}/lib' |
| 888 | localedir='${datarootdir}/locale' |
| 889 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 890 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 891 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 892 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 893 | for ac_option |
| 894 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | # If the previous option needs an argument, assign it. |
| 896 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 897 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 898 | ac_prev= |
| 899 | continue |
| 900 | fi |
| 901 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 902 | case $ac_option in |
| 903 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 904 | *) ac_optarg=yes ;; |
| 905 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 906 | |
| 907 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 909 | case $ac_dashdash$ac_option in |
| 910 | --) |
| 911 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 912 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 913 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 914 | ac_prev=bindir ;; |
| 915 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 916 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 917 | |
| 918 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 919 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 920 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 921 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | |
| 923 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 924 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 925 | ac_prev=cache_file ;; |
| 926 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 927 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 928 | cache_file=$ac_optarg ;; |
| 929 | |
| 930 | --config-cache | -C) |
| 931 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 932 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 933 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 935 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 936 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 937 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 938 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 939 | | --dataroo | --dataro | --datar) |
| 940 | ac_prev=datarootdir ;; |
| 941 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 942 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 943 | datarootdir=$ac_optarg ;; |
| 944 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 945 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 946 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 947 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 948 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 949 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 950 | ac_useropt_orig=$ac_useropt |
| 951 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 952 | case $ac_user_opts in |
| 953 | *" |
| 954 | "enable_$ac_useropt" |
| 955 | "*) ;; |
| 956 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 957 | ac_unrecognized_sep=', ';; |
| 958 | esac |
| 959 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 960 | |
| 961 | -docdir | --docdir | --docdi | --doc | --do) |
| 962 | ac_prev=docdir ;; |
| 963 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 964 | docdir=$ac_optarg ;; |
| 965 | |
| 966 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 967 | ac_prev=dvidir ;; |
| 968 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 969 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 970 | |
| 971 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 972 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 973 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 974 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 975 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 976 | ac_useropt_orig=$ac_useropt |
| 977 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 978 | case $ac_user_opts in |
| 979 | *" |
| 980 | "enable_$ac_useropt" |
| 981 | "*) ;; |
| 982 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 983 | ac_unrecognized_sep=', ';; |
| 984 | esac |
| 985 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 986 | |
| 987 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 988 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 989 | | --exec | --exe | --ex) |
| 990 | ac_prev=exec_prefix ;; |
| 991 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 992 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 993 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 994 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 995 | |
| 996 | -gas | --gas | --ga | --g) |
| 997 | # Obsolete; use --with-gas. |
| 998 | with_gas=yes ;; |
| 999 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1000 | -help | --help | --hel | --he | -h) |
| 1001 | ac_init_help=long ;; |
| 1002 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1003 | ac_init_help=recursive ;; |
| 1004 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1005 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1006 | |
| 1007 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1008 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1009 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1010 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1012 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1013 | ac_prev=htmldir ;; |
| 1014 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1015 | | --ht=*) |
| 1016 | htmldir=$ac_optarg ;; |
| 1017 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1018 | -includedir | --includedir | --includedi | --included | --include \ |
| 1019 | | --includ | --inclu | --incl | --inc) |
| 1020 | ac_prev=includedir ;; |
| 1021 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1022 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1023 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1024 | |
| 1025 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1026 | ac_prev=infodir ;; |
| 1027 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1028 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1029 | |
| 1030 | -libdir | --libdir | --libdi | --libd) |
| 1031 | ac_prev=libdir ;; |
| 1032 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1033 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1034 | |
| 1035 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1036 | | --libexe | --libex | --libe) |
| 1037 | ac_prev=libexecdir ;; |
| 1038 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1039 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1040 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1042 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1043 | ac_prev=localedir ;; |
| 1044 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1045 | localedir=$ac_optarg ;; |
| 1046 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1047 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1048 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1049 | ac_prev=localstatedir ;; |
| 1050 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1051 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1052 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1053 | |
| 1054 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1055 | ac_prev=mandir ;; |
| 1056 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1057 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1058 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1059 | -nfp | --nfp | --nf) |
| 1060 | # Obsolete; use --without-fp. |
| 1061 | with_fp=no ;; |
| 1062 | |
| 1063 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1064 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1065 | no_create=yes ;; |
| 1066 | |
| 1067 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1068 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1069 | no_recursion=yes ;; |
| 1070 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1071 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1072 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1073 | | --oldin | --oldi | --old | --ol | --o) |
| 1074 | ac_prev=oldincludedir ;; |
| 1075 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1076 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1077 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1078 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1079 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1080 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1081 | ac_prev=prefix ;; |
| 1082 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1083 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1084 | |
| 1085 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1086 | | --program-pre | --program-pr | --program-p) |
| 1087 | ac_prev=program_prefix ;; |
| 1088 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1089 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1090 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1091 | |
| 1092 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1093 | | --program-suf | --program-su | --program-s) |
| 1094 | ac_prev=program_suffix ;; |
| 1095 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1096 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | |
| 1099 | -program-transform-name | --program-transform-name \ |
| 1100 | | --program-transform-nam | --program-transform-na \ |
| 1101 | | --program-transform-n | --program-transform- \ |
| 1102 | | --program-transform | --program-transfor \ |
| 1103 | | --program-transfo | --program-transf \ |
| 1104 | | --program-trans | --program-tran \ |
| 1105 | | --progr-tra | --program-tr | --program-t) |
| 1106 | ac_prev=program_transform_name ;; |
| 1107 | -program-transform-name=* | --program-transform-name=* \ |
| 1108 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1109 | | --program-transform-n=* | --program-transform-=* \ |
| 1110 | | --program-transform=* | --program-transfor=* \ |
| 1111 | | --program-transfo=* | --program-transf=* \ |
| 1112 | | --program-trans=* | --program-tran=* \ |
| 1113 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1114 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1115 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1116 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1117 | ac_prev=pdfdir ;; |
| 1118 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1119 | pdfdir=$ac_optarg ;; |
| 1120 | |
| 1121 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1122 | ac_prev=psdir ;; |
| 1123 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1124 | psdir=$ac_optarg ;; |
| 1125 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1126 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1127 | | -silent | --silent | --silen | --sile | --sil) |
| 1128 | silent=yes ;; |
| 1129 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1130 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1131 | ac_prev=sbindir ;; |
| 1132 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1133 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1134 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1135 | |
| 1136 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1137 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1138 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1139 | | --sha | --sh) |
| 1140 | ac_prev=sharedstatedir ;; |
| 1141 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1142 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1143 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1144 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1145 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1146 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1147 | -site | --site | --sit) |
| 1148 | ac_prev=site ;; |
| 1149 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1150 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1151 | |
| 1152 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1153 | ac_prev=srcdir ;; |
| 1154 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1155 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1156 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1157 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1158 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1159 | ac_prev=sysconfdir ;; |
| 1160 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1161 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1162 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1163 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1164 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1165 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1166 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1167 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1168 | |
| 1169 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1170 | verbose=yes ;; |
| 1171 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1172 | -version | --version | --versio | --versi | --vers | -V) |
| 1173 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1174 | |
| 1175 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1176 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1177 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1178 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1179 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1180 | ac_useropt_orig=$ac_useropt |
| 1181 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1182 | case $ac_user_opts in |
| 1183 | *" |
| 1184 | "with_$ac_useropt" |
| 1185 | "*) ;; |
| 1186 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1187 | ac_unrecognized_sep=', ';; |
| 1188 | esac |
| 1189 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | |
| 1191 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1192 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1193 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1194 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1195 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1196 | ac_useropt_orig=$ac_useropt |
| 1197 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1198 | case $ac_user_opts in |
| 1199 | *" |
| 1200 | "with_$ac_useropt" |
| 1201 | "*) ;; |
| 1202 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1203 | ac_unrecognized_sep=', ';; |
| 1204 | esac |
| 1205 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1206 | |
| 1207 | --x) |
| 1208 | # Obsolete; use --with-x. |
| 1209 | with_x=yes ;; |
| 1210 | |
| 1211 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1212 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1213 | ac_prev=x_includes ;; |
| 1214 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1215 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1216 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1217 | |
| 1218 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1219 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1220 | ac_prev=x_libraries ;; |
| 1221 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1222 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1223 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1224 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1225 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1226 | Try \`$0 --help' for more information." |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1227 | ;; |
| 1228 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1229 | *=*) |
| 1230 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1231 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1232 | case $ac_envvar in #( |
| 1233 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1234 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1235 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1236 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1237 | export $ac_envvar ;; |
| 1238 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1239 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1240 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1241 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1242 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1243 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1244 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1245 | ;; |
| 1246 | |
| 1247 | esac |
| 1248 | done |
| 1249 | |
| 1250 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1251 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1252 | as_fn_error "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1253 | fi |
| 1254 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1255 | if test -n "$ac_unrecognized_opts"; then |
| 1256 | case $enable_option_checking in |
| 1257 | no) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1258 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1259 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1260 | esac |
| 1261 | fi |
| 1262 | |
| 1263 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1264 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1265 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1266 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1267 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1268 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1269 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1270 | # Remove trailing slashes. |
| 1271 | case $ac_val in |
| 1272 | */ ) |
| 1273 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1274 | eval $ac_var=\$ac_val;; |
| 1275 | esac |
| 1276 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1277 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1278 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1279 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1280 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1281 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1282 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1284 | # There might be people who depend on the old broken behavior: `$host' |
| 1285 | # used to hold the argument of --host etc. |
| 1286 | # FIXME: To remove some day. |
| 1287 | build=$build_alias |
| 1288 | host=$host_alias |
| 1289 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1290 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1291 | # FIXME: To remove some day. |
| 1292 | if test "x$host_alias" != x; then |
| 1293 | if test "x$build_alias" = x; then |
| 1294 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1295 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1296 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1297 | elif test "x$build_alias" != "x$host_alias"; then |
| 1298 | cross_compiling=yes |
| 1299 | fi |
| 1300 | fi |
| 1301 | |
| 1302 | ac_tool_prefix= |
| 1303 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1304 | |
| 1305 | test "$silent" = yes && exec 6>/dev/null |
| 1306 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1307 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1308 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1309 | ac_ls_di=`ls -di .` && |
| 1310 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1311 | as_fn_error "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1312 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1313 | as_fn_error "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1314 | |
| 1315 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1316 | # Find the source files, if location was not specified. |
| 1317 | if test -z "$srcdir"; then |
| 1318 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1319 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1320 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1321 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1322 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1323 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1324 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1325 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1326 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1327 | s//\1/ |
| 1328 | q |
| 1329 | } |
| 1330 | /^X\(\/\/\)[^/].*/{ |
| 1331 | s//\1/ |
| 1332 | q |
| 1333 | } |
| 1334 | /^X\(\/\/\)$/{ |
| 1335 | s//\1/ |
| 1336 | q |
| 1337 | } |
| 1338 | /^X\(\/\).*/{ |
| 1339 | s//\1/ |
| 1340 | q |
| 1341 | } |
| 1342 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1343 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1344 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1345 | srcdir=.. |
| 1346 | fi |
| 1347 | else |
| 1348 | ac_srcdir_defaulted=no |
| 1349 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1350 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1351 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1352 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1353 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1354 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1355 | ac_abs_confdir=`( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1356 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1357 | pwd)` |
| 1358 | # When building in place, set srcdir=. |
| 1359 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1360 | srcdir=. |
| 1361 | fi |
| 1362 | # Remove unnecessary trailing slashes from srcdir. |
| 1363 | # Double slashes in file names in object file debugging info |
| 1364 | # mess up M-x gdb in Emacs. |
| 1365 | case $srcdir in |
| 1366 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1367 | esac |
| 1368 | for ac_var in $ac_precious_vars; do |
| 1369 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1370 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1371 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1372 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1373 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1374 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1375 | # |
| 1376 | # Report the --help message. |
| 1377 | # |
| 1378 | if test "$ac_init_help" = "long"; then |
| 1379 | # Omit some internal or obsolete options to make the list less imposing. |
| 1380 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1381 | cat <<_ACEOF |
| 1382 | \`configure' configures this package to adapt to many kinds of systems. |
| 1383 | |
| 1384 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1385 | |
| 1386 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1387 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1388 | |
| 1389 | Defaults for the options are specified in brackets. |
| 1390 | |
| 1391 | Configuration: |
| 1392 | -h, --help display this help and exit |
| 1393 | --help=short display options specific to this package |
| 1394 | --help=recursive display the short help of all the included packages |
| 1395 | -V, --version display version information and exit |
| 1396 | -q, --quiet, --silent do not print \`checking...' messages |
| 1397 | --cache-file=FILE cache test results in FILE [disabled] |
| 1398 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1399 | -n, --no-create do not create output files |
| 1400 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1401 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1402 | Installation directories: |
| 1403 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1404 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1405 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1406 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1407 | |
| 1408 | By default, \`make install' will install all the files in |
| 1409 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1410 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1411 | for instance \`--prefix=\$HOME'. |
| 1412 | |
| 1413 | For better control, use the options below. |
| 1414 | |
| 1415 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1416 | --bindir=DIR user executables [EPREFIX/bin] |
| 1417 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1418 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1419 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1420 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1421 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1422 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1423 | --includedir=DIR C header files [PREFIX/include] |
| 1424 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1425 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1426 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1427 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1428 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1429 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1430 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1431 | --htmldir=DIR html documentation [DOCDIR] |
| 1432 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1433 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1434 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1435 | _ACEOF |
| 1436 | |
| 1437 | cat <<\_ACEOF |
| 1438 | |
| 1439 | System types: |
| 1440 | --build=BUILD configure for building on BUILD [guessed] |
| 1441 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1442 | _ACEOF |
| 1443 | fi |
| 1444 | |
| 1445 | if test -n "$ac_init_help"; then |
| 1446 | |
| 1447 | cat <<\_ACEOF |
| 1448 | |
| 1449 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1450 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1451 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1452 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1453 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1454 | --enable-symlink-install use symlinks when installing instead of hard links |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 1455 | --enable-relative-symlinks use relative symlinks when installing |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1456 | --enable-symlink-build use symlinks while building instead of hard links |
| 1457 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1458 | --enable-compression enable EXPERIMENTAL compression support |
| 1459 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1460 | --enable-elf-shlibs select ELF shared libraries |
| 1461 | --enable-bsd-shlibs select BSD shared libraries |
| 1462 | --enable-profile build profiling libraries |
| 1463 | --enable-checker build checker libraries |
| 1464 | --enable-jbd-debug enable journal debugging |
| 1465 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1466 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1467 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1468 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 1469 | --enable-libquota enable quota support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | --disable-debugfs disable support of debugfs program |
| 1471 | --disable-imager disable support of e2image program |
| 1472 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1473 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | --enable-fsck build fsck wrapper program |
| 1475 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1476 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1477 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1478 | --disable-nls do not use Native Language Support |
| 1479 | --disable-rpath do not hardcode runtime library paths |
| 1480 | |
| 1481 | Optional Packages: |
| 1482 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1483 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1484 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1485 | --with-cc no longer supported, use CC= instead |
| 1486 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1487 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1488 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1489 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1490 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1491 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1492 | --with-included-gettext use the GNU gettext library included here |
| 1493 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1494 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1495 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1496 | |
| 1497 | Some influential environment variables: |
| 1498 | CC C compiler command |
| 1499 | CFLAGS C compiler flags |
| 1500 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1501 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1502 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1503 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1504 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1505 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1506 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | |
| 1508 | Use these variables to override the choices made by `configure' or to help |
| 1509 | it to find libraries and programs with nonstandard names/locations. |
| 1510 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1511 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1512 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1513 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1514 | fi |
| 1515 | |
| 1516 | if test "$ac_init_help" = "recursive"; then |
| 1517 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1518 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1519 | test -d "$ac_dir" || |
| 1520 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1521 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1522 | ac_builddir=. |
| 1523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1524 | case "$ac_dir" in |
| 1525 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1526 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1527 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1528 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1529 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1530 | case $ac_top_builddir_sub in |
| 1531 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1532 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1533 | esac ;; |
| 1534 | esac |
| 1535 | ac_abs_top_builddir=$ac_pwd |
| 1536 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1537 | # for backward compatibility: |
| 1538 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1539 | |
| 1540 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1541 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1543 | ac_top_srcdir=$ac_top_builddir_sub |
| 1544 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1545 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1546 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1547 | ac_top_srcdir=$srcdir |
| 1548 | ac_abs_top_srcdir=$srcdir ;; |
| 1549 | *) # Relative name. |
| 1550 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1551 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1552 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1553 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1554 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1555 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1556 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1557 | # Check for guested configure. |
| 1558 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1559 | echo && |
| 1560 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1561 | elif test -f "$ac_srcdir/configure"; then |
| 1562 | echo && |
| 1563 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1565 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1566 | fi || ac_status=$? |
| 1567 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1568 | done |
| 1569 | fi |
| 1570 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1571 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1572 | if $ac_init_version; then |
| 1573 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1574 | configure |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1575 | generated by GNU Autoconf 2.65 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1576 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1577 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1578 | This configure script is free software; the Free Software Foundation |
| 1579 | gives unlimited permission to copy, distribute and modify it. |
| 1580 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1581 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1582 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1583 | |
| 1584 | ## ------------------------ ## |
| 1585 | ## Autoconf initialization. ## |
| 1586 | ## ------------------------ ## |
| 1587 | |
| 1588 | # ac_fn_c_try_compile LINENO |
| 1589 | # -------------------------- |
| 1590 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1591 | ac_fn_c_try_compile () |
| 1592 | { |
| 1593 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1594 | rm -f conftest.$ac_objext |
| 1595 | if { { ac_try="$ac_compile" |
| 1596 | case "(($ac_try" in |
| 1597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1598 | *) ac_try_echo=$ac_try;; |
| 1599 | esac |
| 1600 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1601 | $as_echo "$ac_try_echo"; } >&5 |
| 1602 | (eval "$ac_compile") 2>conftest.err |
| 1603 | ac_status=$? |
| 1604 | if test -s conftest.err; then |
| 1605 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1606 | cat conftest.er1 >&5 |
| 1607 | mv -f conftest.er1 conftest.err |
| 1608 | fi |
| 1609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1610 | test $ac_status = 0; } && { |
| 1611 | test -z "$ac_c_werror_flag" || |
| 1612 | test ! -s conftest.err |
| 1613 | } && test -s conftest.$ac_objext; then : |
| 1614 | ac_retval=0 |
| 1615 | else |
| 1616 | $as_echo "$as_me: failed program was:" >&5 |
| 1617 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1618 | |
| 1619 | ac_retval=1 |
| 1620 | fi |
| 1621 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1622 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1623 | |
| 1624 | } # ac_fn_c_try_compile |
| 1625 | |
| 1626 | # ac_fn_c_try_link LINENO |
| 1627 | # ----------------------- |
| 1628 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1629 | ac_fn_c_try_link () |
| 1630 | { |
| 1631 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1633 | if { { ac_try="$ac_link" |
| 1634 | case "(($ac_try" in |
| 1635 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1636 | *) ac_try_echo=$ac_try;; |
| 1637 | esac |
| 1638 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1639 | $as_echo "$ac_try_echo"; } >&5 |
| 1640 | (eval "$ac_link") 2>conftest.err |
| 1641 | ac_status=$? |
| 1642 | if test -s conftest.err; then |
| 1643 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1644 | cat conftest.er1 >&5 |
| 1645 | mv -f conftest.er1 conftest.err |
| 1646 | fi |
| 1647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1648 | test $ac_status = 0; } && { |
| 1649 | test -z "$ac_c_werror_flag" || |
| 1650 | test ! -s conftest.err |
| 1651 | } && test -s conftest$ac_exeext && { |
| 1652 | test "$cross_compiling" = yes || |
| 1653 | $as_test_x conftest$ac_exeext |
| 1654 | }; then : |
| 1655 | ac_retval=0 |
| 1656 | else |
| 1657 | $as_echo "$as_me: failed program was:" >&5 |
| 1658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1659 | |
| 1660 | ac_retval=1 |
| 1661 | fi |
| 1662 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1663 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1664 | # interfere with the next link command; also delete a directory that is |
| 1665 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1666 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1667 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1668 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1669 | |
| 1670 | } # ac_fn_c_try_link |
| 1671 | |
| 1672 | # ac_fn_c_try_cpp LINENO |
| 1673 | # ---------------------- |
| 1674 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1675 | ac_fn_c_try_cpp () |
| 1676 | { |
| 1677 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1678 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1679 | case "(($ac_try" in |
| 1680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1681 | *) ac_try_echo=$ac_try;; |
| 1682 | esac |
| 1683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1684 | $as_echo "$ac_try_echo"; } >&5 |
| 1685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1686 | ac_status=$? |
| 1687 | if test -s conftest.err; then |
| 1688 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1689 | cat conftest.er1 >&5 |
| 1690 | mv -f conftest.er1 conftest.err |
| 1691 | fi |
| 1692 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1693 | test $ac_status = 0; } >/dev/null && { |
| 1694 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1695 | test ! -s conftest.err |
| 1696 | }; then : |
| 1697 | ac_retval=0 |
| 1698 | else |
| 1699 | $as_echo "$as_me: failed program was:" >&5 |
| 1700 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1701 | |
| 1702 | ac_retval=1 |
| 1703 | fi |
| 1704 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1705 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1706 | |
| 1707 | } # ac_fn_c_try_cpp |
| 1708 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1709 | # ac_fn_c_try_run LINENO |
| 1710 | # ---------------------- |
| 1711 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1712 | # that executables *can* be run. |
| 1713 | ac_fn_c_try_run () |
| 1714 | { |
| 1715 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1716 | if { { ac_try="$ac_link" |
| 1717 | case "(($ac_try" in |
| 1718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1719 | *) ac_try_echo=$ac_try;; |
| 1720 | esac |
| 1721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1722 | $as_echo "$ac_try_echo"; } >&5 |
| 1723 | (eval "$ac_link") 2>&5 |
| 1724 | ac_status=$? |
| 1725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1726 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1727 | { { case "(($ac_try" in |
| 1728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1729 | *) ac_try_echo=$ac_try;; |
| 1730 | esac |
| 1731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1732 | $as_echo "$ac_try_echo"; } >&5 |
| 1733 | (eval "$ac_try") 2>&5 |
| 1734 | ac_status=$? |
| 1735 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1736 | test $ac_status = 0; }; }; then : |
| 1737 | ac_retval=0 |
| 1738 | else |
| 1739 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1740 | $as_echo "$as_me: failed program was:" >&5 |
| 1741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1742 | |
| 1743 | ac_retval=$ac_status |
| 1744 | fi |
| 1745 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1746 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1747 | as_fn_set_status $ac_retval |
| 1748 | |
| 1749 | } # ac_fn_c_try_run |
| 1750 | |
| 1751 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1752 | # ------------------------------------------- |
| 1753 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1754 | # variable VAR accordingly. |
| 1755 | ac_fn_c_check_type () |
| 1756 | { |
| 1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1759 | $as_echo_n "checking for $2... " >&6; } |
| 1760 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1761 | $as_echo_n "(cached) " >&6 |
| 1762 | else |
| 1763 | eval "$3=no" |
| 1764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1765 | /* end confdefs.h. */ |
| 1766 | $4 |
| 1767 | int |
| 1768 | main () |
| 1769 | { |
| 1770 | if (sizeof ($2)) |
| 1771 | return 0; |
| 1772 | ; |
| 1773 | return 0; |
| 1774 | } |
| 1775 | _ACEOF |
| 1776 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1778 | /* end confdefs.h. */ |
| 1779 | $4 |
| 1780 | int |
| 1781 | main () |
| 1782 | { |
| 1783 | if (sizeof (($2))) |
| 1784 | return 0; |
| 1785 | ; |
| 1786 | return 0; |
| 1787 | } |
| 1788 | _ACEOF |
| 1789 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1790 | |
| 1791 | else |
| 1792 | eval "$3=yes" |
| 1793 | fi |
| 1794 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1795 | fi |
| 1796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1797 | fi |
| 1798 | eval ac_res=\$$3 |
| 1799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1800 | $as_echo "$ac_res" >&6; } |
| 1801 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1802 | |
| 1803 | } # ac_fn_c_check_type |
| 1804 | |
| 1805 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1806 | # ------------------------------------------------------- |
| 1807 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1808 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1809 | ac_fn_c_check_header_compile () |
| 1810 | { |
| 1811 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1813 | $as_echo_n "checking for $2... " >&6; } |
| 1814 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1815 | $as_echo_n "(cached) " >&6 |
| 1816 | else |
| 1817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1818 | /* end confdefs.h. */ |
| 1819 | $4 |
| 1820 | #include <$2> |
| 1821 | _ACEOF |
| 1822 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1823 | eval "$3=yes" |
| 1824 | else |
| 1825 | eval "$3=no" |
| 1826 | fi |
| 1827 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1828 | fi |
| 1829 | eval ac_res=\$$3 |
| 1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1831 | $as_echo "$ac_res" >&6; } |
| 1832 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1833 | |
| 1834 | } # ac_fn_c_check_header_compile |
| 1835 | |
| 1836 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1837 | # ---------------------------------- |
| 1838 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1839 | ac_fn_c_check_func () |
| 1840 | { |
| 1841 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1843 | $as_echo_n "checking for $2... " >&6; } |
| 1844 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1845 | $as_echo_n "(cached) " >&6 |
| 1846 | else |
| 1847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1848 | /* end confdefs.h. */ |
| 1849 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1850 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1851 | #define $2 innocuous_$2 |
| 1852 | |
| 1853 | /* System header to define __stub macros and hopefully few prototypes, |
| 1854 | which can conflict with char $2 (); below. |
| 1855 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1856 | <limits.h> exists even on freestanding compilers. */ |
| 1857 | |
| 1858 | #ifdef __STDC__ |
| 1859 | # include <limits.h> |
| 1860 | #else |
| 1861 | # include <assert.h> |
| 1862 | #endif |
| 1863 | |
| 1864 | #undef $2 |
| 1865 | |
| 1866 | /* Override any GCC internal prototype to avoid an error. |
| 1867 | Use char because int might match the return type of a GCC |
| 1868 | builtin and then its argument prototype would still apply. */ |
| 1869 | #ifdef __cplusplus |
| 1870 | extern "C" |
| 1871 | #endif |
| 1872 | char $2 (); |
| 1873 | /* The GNU C library defines this for functions which it implements |
| 1874 | to always fail with ENOSYS. Some functions are actually named |
| 1875 | something starting with __ and the normal name is an alias. */ |
| 1876 | #if defined __stub_$2 || defined __stub___$2 |
| 1877 | choke me |
| 1878 | #endif |
| 1879 | |
| 1880 | int |
| 1881 | main () |
| 1882 | { |
| 1883 | return $2 (); |
| 1884 | ; |
| 1885 | return 0; |
| 1886 | } |
| 1887 | _ACEOF |
| 1888 | if ac_fn_c_try_link "$LINENO"; then : |
| 1889 | eval "$3=yes" |
| 1890 | else |
| 1891 | eval "$3=no" |
| 1892 | fi |
| 1893 | rm -f core conftest.err conftest.$ac_objext \ |
| 1894 | conftest$ac_exeext conftest.$ac_ext |
| 1895 | fi |
| 1896 | eval ac_res=\$$3 |
| 1897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1898 | $as_echo "$ac_res" >&6; } |
| 1899 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1900 | |
| 1901 | } # ac_fn_c_check_func |
| 1902 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1903 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1904 | # ------------------------------------------------------- |
| 1905 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1906 | # the include files in INCLUDES and setting the cache variable VAR |
| 1907 | # accordingly. |
| 1908 | ac_fn_c_check_header_mongrel () |
| 1909 | { |
| 1910 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1911 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1913 | $as_echo_n "checking for $2... " >&6; } |
| 1914 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1915 | $as_echo_n "(cached) " >&6 |
| 1916 | fi |
| 1917 | eval ac_res=\$$3 |
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1919 | $as_echo "$ac_res" >&6; } |
| 1920 | else |
| 1921 | # Is the header compilable? |
| 1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1923 | $as_echo_n "checking $2 usability... " >&6; } |
| 1924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1925 | /* end confdefs.h. */ |
| 1926 | $4 |
| 1927 | #include <$2> |
| 1928 | _ACEOF |
| 1929 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1930 | ac_header_compiler=yes |
| 1931 | else |
| 1932 | ac_header_compiler=no |
| 1933 | fi |
| 1934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1936 | $as_echo "$ac_header_compiler" >&6; } |
| 1937 | |
| 1938 | # Is the header present? |
| 1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1940 | $as_echo_n "checking $2 presence... " >&6; } |
| 1941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1942 | /* end confdefs.h. */ |
| 1943 | #include <$2> |
| 1944 | _ACEOF |
| 1945 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1946 | ac_header_preproc=yes |
| 1947 | else |
| 1948 | ac_header_preproc=no |
| 1949 | fi |
| 1950 | rm -f conftest.err conftest.$ac_ext |
| 1951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1952 | $as_echo "$ac_header_preproc" >&6; } |
| 1953 | |
| 1954 | # So? What about this header? |
| 1955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1956 | yes:no: ) |
| 1957 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1958 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1960 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1961 | ;; |
| 1962 | no:yes:* ) |
| 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1964 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1966 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1968 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1970 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1972 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1973 | ;; |
| 1974 | esac |
| 1975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1976 | $as_echo_n "checking for $2... " >&6; } |
| 1977 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1978 | $as_echo_n "(cached) " >&6 |
| 1979 | else |
| 1980 | eval "$3=\$ac_header_compiler" |
| 1981 | fi |
| 1982 | eval ac_res=\$$3 |
| 1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1984 | $as_echo "$ac_res" >&6; } |
| 1985 | fi |
| 1986 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1987 | |
| 1988 | } # ac_fn_c_check_header_mongrel |
| 1989 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1990 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1991 | # -------------------------------------------- |
| 1992 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1993 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1994 | # computed |
| 1995 | ac_fn_c_compute_int () |
| 1996 | { |
| 1997 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1998 | if test "$cross_compiling" = yes; then |
| 1999 | # Depending upon the size, compute the lo and hi bounds. |
| 2000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2001 | /* end confdefs.h. */ |
| 2002 | $4 |
| 2003 | int |
| 2004 | main () |
| 2005 | { |
| 2006 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2007 | test_array [0] = 0 |
| 2008 | |
| 2009 | ; |
| 2010 | return 0; |
| 2011 | } |
| 2012 | _ACEOF |
| 2013 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2014 | ac_lo=0 ac_mid=0 |
| 2015 | while :; do |
| 2016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2017 | /* end confdefs.h. */ |
| 2018 | $4 |
| 2019 | int |
| 2020 | main () |
| 2021 | { |
| 2022 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2023 | test_array [0] = 0 |
| 2024 | |
| 2025 | ; |
| 2026 | return 0; |
| 2027 | } |
| 2028 | _ACEOF |
| 2029 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2030 | ac_hi=$ac_mid; break |
| 2031 | else |
| 2032 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2033 | if test $ac_lo -le $ac_mid; then |
| 2034 | ac_lo= ac_hi= |
| 2035 | break |
| 2036 | fi |
| 2037 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2038 | fi |
| 2039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2040 | done |
| 2041 | else |
| 2042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2043 | /* end confdefs.h. */ |
| 2044 | $4 |
| 2045 | int |
| 2046 | main () |
| 2047 | { |
| 2048 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2049 | test_array [0] = 0 |
| 2050 | |
| 2051 | ; |
| 2052 | return 0; |
| 2053 | } |
| 2054 | _ACEOF |
| 2055 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2056 | ac_hi=-1 ac_mid=-1 |
| 2057 | while :; do |
| 2058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2059 | /* end confdefs.h. */ |
| 2060 | $4 |
| 2061 | int |
| 2062 | main () |
| 2063 | { |
| 2064 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2065 | test_array [0] = 0 |
| 2066 | |
| 2067 | ; |
| 2068 | return 0; |
| 2069 | } |
| 2070 | _ACEOF |
| 2071 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2072 | ac_lo=$ac_mid; break |
| 2073 | else |
| 2074 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2075 | if test $ac_mid -le $ac_hi; then |
| 2076 | ac_lo= ac_hi= |
| 2077 | break |
| 2078 | fi |
| 2079 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2080 | fi |
| 2081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2082 | done |
| 2083 | else |
| 2084 | ac_lo= ac_hi= |
| 2085 | fi |
| 2086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2087 | fi |
| 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2089 | # Binary search between lo and hi bounds. |
| 2090 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2091 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2093 | /* end confdefs.h. */ |
| 2094 | $4 |
| 2095 | int |
| 2096 | main () |
| 2097 | { |
| 2098 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2099 | test_array [0] = 0 |
| 2100 | |
| 2101 | ; |
| 2102 | return 0; |
| 2103 | } |
| 2104 | _ACEOF |
| 2105 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2106 | ac_hi=$ac_mid |
| 2107 | else |
| 2108 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2109 | fi |
| 2110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2111 | done |
| 2112 | case $ac_lo in #(( |
| 2113 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2114 | '') ac_retval=1 ;; |
| 2115 | esac |
| 2116 | else |
| 2117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2118 | /* end confdefs.h. */ |
| 2119 | $4 |
| 2120 | static long int longval () { return $2; } |
| 2121 | static unsigned long int ulongval () { return $2; } |
| 2122 | #include <stdio.h> |
| 2123 | #include <stdlib.h> |
| 2124 | int |
| 2125 | main () |
| 2126 | { |
| 2127 | |
| 2128 | FILE *f = fopen ("conftest.val", "w"); |
| 2129 | if (! f) |
| 2130 | return 1; |
| 2131 | if (($2) < 0) |
| 2132 | { |
| 2133 | long int i = longval (); |
| 2134 | if (i != ($2)) |
| 2135 | return 1; |
| 2136 | fprintf (f, "%ld", i); |
| 2137 | } |
| 2138 | else |
| 2139 | { |
| 2140 | unsigned long int i = ulongval (); |
| 2141 | if (i != ($2)) |
| 2142 | return 1; |
| 2143 | fprintf (f, "%lu", i); |
| 2144 | } |
| 2145 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2146 | on some platforms. */ |
| 2147 | return ferror (f) || fclose (f) != 0; |
| 2148 | |
| 2149 | ; |
| 2150 | return 0; |
| 2151 | } |
| 2152 | _ACEOF |
| 2153 | if ac_fn_c_try_run "$LINENO"; then : |
| 2154 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2155 | else |
| 2156 | ac_retval=1 |
| 2157 | fi |
| 2158 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2159 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2160 | rm -f conftest.val |
| 2161 | |
| 2162 | fi |
| 2163 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2164 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2165 | |
| 2166 | } # ac_fn_c_compute_int |
| 2167 | |
| 2168 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2169 | # ---------------------------------------------------- |
| 2170 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2171 | # INCLUDES, setting cache variable VAR accordingly. |
| 2172 | ac_fn_c_check_member () |
| 2173 | { |
| 2174 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2176 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2177 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2178 | $as_echo_n "(cached) " >&6 |
| 2179 | else |
| 2180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2181 | /* end confdefs.h. */ |
| 2182 | $5 |
| 2183 | int |
| 2184 | main () |
| 2185 | { |
| 2186 | static $2 ac_aggr; |
| 2187 | if (ac_aggr.$3) |
| 2188 | return 0; |
| 2189 | ; |
| 2190 | return 0; |
| 2191 | } |
| 2192 | _ACEOF |
| 2193 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2194 | eval "$4=yes" |
| 2195 | else |
| 2196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2197 | /* end confdefs.h. */ |
| 2198 | $5 |
| 2199 | int |
| 2200 | main () |
| 2201 | { |
| 2202 | static $2 ac_aggr; |
| 2203 | if (sizeof ac_aggr.$3) |
| 2204 | return 0; |
| 2205 | ; |
| 2206 | return 0; |
| 2207 | } |
| 2208 | _ACEOF |
| 2209 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2210 | eval "$4=yes" |
| 2211 | else |
| 2212 | eval "$4=no" |
| 2213 | fi |
| 2214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2215 | fi |
| 2216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2217 | fi |
| 2218 | eval ac_res=\$$4 |
| 2219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2220 | $as_echo "$ac_res" >&6; } |
| 2221 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2222 | |
| 2223 | } # ac_fn_c_check_member |
| 2224 | |
| 2225 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2226 | # ------------------------------------ |
| 2227 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2228 | ac_fn_c_check_decl () |
| 2229 | { |
| 2230 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2232 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2233 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2234 | $as_echo_n "(cached) " >&6 |
| 2235 | else |
| 2236 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2237 | /* end confdefs.h. */ |
| 2238 | $4 |
| 2239 | int |
| 2240 | main () |
| 2241 | { |
| 2242 | #ifndef $2 |
| 2243 | (void) $2; |
| 2244 | #endif |
| 2245 | |
| 2246 | ; |
| 2247 | return 0; |
| 2248 | } |
| 2249 | _ACEOF |
| 2250 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2251 | eval "$3=yes" |
| 2252 | else |
| 2253 | eval "$3=no" |
| 2254 | fi |
| 2255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2256 | fi |
| 2257 | eval ac_res=\$$3 |
| 2258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2259 | $as_echo "$ac_res" >&6; } |
| 2260 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2261 | |
| 2262 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2263 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2264 | This file contains any messages produced by compilers while |
| 2265 | running configure, to aid debugging if configure makes a mistake. |
| 2266 | |
| 2267 | It was created by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2268 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2269 | |
| 2270 | $ $0 $@ |
| 2271 | |
| 2272 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2273 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2274 | { |
| 2275 | cat <<_ASUNAME |
| 2276 | ## --------- ## |
| 2277 | ## Platform. ## |
| 2278 | ## --------- ## |
| 2279 | |
| 2280 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2281 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2282 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2283 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2284 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2285 | |
| 2286 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2287 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2288 | |
| 2289 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2290 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2291 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2292 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2294 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2295 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2296 | |
| 2297 | _ASUNAME |
| 2298 | |
| 2299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2300 | for as_dir in $PATH |
| 2301 | do |
| 2302 | IFS=$as_save_IFS |
| 2303 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2304 | $as_echo "PATH: $as_dir" |
| 2305 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2306 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2307 | |
| 2308 | } >&5 |
| 2309 | |
| 2310 | cat >&5 <<_ACEOF |
| 2311 | |
| 2312 | |
| 2313 | ## ----------- ## |
| 2314 | ## Core tests. ## |
| 2315 | ## ----------- ## |
| 2316 | |
| 2317 | _ACEOF |
| 2318 | |
| 2319 | |
| 2320 | # Keep a trace of the command line. |
| 2321 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2322 | # Strip out --silent because we don't want to record it for future runs. |
| 2323 | # Also quote any args containing shell meta-characters. |
| 2324 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2325 | ac_configure_args= |
| 2326 | ac_configure_args0= |
| 2327 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2328 | ac_must_keep_next=false |
| 2329 | for ac_pass in 1 2 |
| 2330 | do |
| 2331 | for ac_arg |
| 2332 | do |
| 2333 | case $ac_arg in |
| 2334 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2335 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2336 | | -silent | --silent | --silen | --sile | --sil) |
| 2337 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2338 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2339 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2340 | esac |
| 2341 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2342 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2343 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2344 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2345 | if test $ac_must_keep_next = true; then |
| 2346 | ac_must_keep_next=false # Got value, back to normal. |
| 2347 | else |
| 2348 | case $ac_arg in |
| 2349 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2350 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2351 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2352 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2353 | case "$ac_configure_args0 " in |
| 2354 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2355 | esac |
| 2356 | ;; |
| 2357 | -* ) ac_must_keep_next=true ;; |
| 2358 | esac |
| 2359 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2360 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2361 | ;; |
| 2362 | esac |
| 2363 | done |
| 2364 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2365 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2366 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2367 | |
| 2368 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2369 | # config.log. We remove comments because anyway the quotes in there |
| 2370 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2371 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2372 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2373 | trap 'exit_status=$? |
| 2374 | # Save into config.log some information that might help in debugging. |
| 2375 | { |
| 2376 | echo |
| 2377 | |
| 2378 | cat <<\_ASBOX |
| 2379 | ## ---------------- ## |
| 2380 | ## Cache variables. ## |
| 2381 | ## ---------------- ## |
| 2382 | _ASBOX |
| 2383 | echo |
| 2384 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2385 | ( |
| 2386 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2387 | eval ac_val=\$$ac_var |
| 2388 | case $ac_val in #( |
| 2389 | *${as_nl}*) |
| 2390 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2391 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2392 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2393 | esac |
| 2394 | case $ac_var in #( |
| 2395 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2396 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2397 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2398 | esac ;; |
| 2399 | esac |
| 2400 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2401 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2402 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2403 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2404 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2405 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2406 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2407 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2408 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2409 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2410 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2411 | esac | |
| 2412 | sort |
| 2413 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2414 | echo |
| 2415 | |
| 2416 | cat <<\_ASBOX |
| 2417 | ## ----------------- ## |
| 2418 | ## Output variables. ## |
| 2419 | ## ----------------- ## |
| 2420 | _ASBOX |
| 2421 | echo |
| 2422 | for ac_var in $ac_subst_vars |
| 2423 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2424 | eval ac_val=\$$ac_var |
| 2425 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2426 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2427 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2428 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2429 | done | sort |
| 2430 | echo |
| 2431 | |
| 2432 | if test -n "$ac_subst_files"; then |
| 2433 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2434 | ## ------------------- ## |
| 2435 | ## File substitutions. ## |
| 2436 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2437 | _ASBOX |
| 2438 | echo |
| 2439 | for ac_var in $ac_subst_files |
| 2440 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2441 | eval ac_val=\$$ac_var |
| 2442 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2443 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2444 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2445 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | done | sort |
| 2447 | echo |
| 2448 | fi |
| 2449 | |
| 2450 | if test -s confdefs.h; then |
| 2451 | cat <<\_ASBOX |
| 2452 | ## ----------- ## |
| 2453 | ## confdefs.h. ## |
| 2454 | ## ----------- ## |
| 2455 | _ASBOX |
| 2456 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2457 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2458 | echo |
| 2459 | fi |
| 2460 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2461 | $as_echo "$as_me: caught signal $ac_signal" |
| 2462 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2463 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2464 | rm -f core *.core core.conftest.* && |
| 2465 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2467 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2468 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2469 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2470 | done |
| 2471 | ac_signal=0 |
| 2472 | |
| 2473 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2474 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2475 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2476 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2478 | # Predefined preprocessor variables. |
| 2479 | |
| 2480 | cat >>confdefs.h <<_ACEOF |
| 2481 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2482 | _ACEOF |
| 2483 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2484 | cat >>confdefs.h <<_ACEOF |
| 2485 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2486 | _ACEOF |
| 2487 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2488 | cat >>confdefs.h <<_ACEOF |
| 2489 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2490 | _ACEOF |
| 2491 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2492 | cat >>confdefs.h <<_ACEOF |
| 2493 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2494 | _ACEOF |
| 2495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2496 | cat >>confdefs.h <<_ACEOF |
| 2497 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2498 | _ACEOF |
| 2499 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2500 | cat >>confdefs.h <<_ACEOF |
| 2501 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2502 | _ACEOF |
| 2503 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2504 | |
| 2505 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2506 | # Prefer an explicitly selected file to automatically selected ones. |
| 2507 | ac_site_file1=NONE |
| 2508 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2509 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2510 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2511 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2512 | ac_site_file1=$prefix/share/config.site |
| 2513 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2514 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2515 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2516 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2517 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2518 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2519 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2520 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2521 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2523 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2524 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2525 | . "$ac_site_file" |
| 2526 | fi |
| 2527 | done |
| 2528 | |
| 2529 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2530 | # Some versions of bash will fail to source /dev/null (special files |
| 2531 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2532 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2534 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2535 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2536 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2537 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2538 | esac |
| 2539 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2540 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2542 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2543 | >$cache_file |
| 2544 | fi |
| 2545 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2546 | as_fn_append ac_header_list " stdlib.h" |
| 2547 | as_fn_append ac_header_list " unistd.h" |
| 2548 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2549 | # Check that the precious variables saved in the cache have kept the same |
| 2550 | # value. |
| 2551 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2552 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2553 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2554 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2555 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2556 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2557 | case $ac_old_set,$ac_new_set in |
| 2558 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2560 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | ac_cache_corrupted=: ;; |
| 2562 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2564 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2565 | ac_cache_corrupted=: ;; |
| 2566 | ,);; |
| 2567 | *) |
| 2568 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2569 | # differences in whitespace do not lead to failure. |
| 2570 | ac_old_val_w=`echo x $ac_old_val` |
| 2571 | ac_new_val_w=`echo x $ac_new_val` |
| 2572 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2574 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2575 | ac_cache_corrupted=: |
| 2576 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2578 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2579 | eval $ac_var=\$ac_old_val |
| 2580 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2582 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2583 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2584 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2585 | fi;; |
| 2586 | esac |
| 2587 | # Pass precious variables to config.status. |
| 2588 | if test "$ac_new_set" = set; then |
| 2589 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2590 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2592 | esac |
| 2593 | case " $ac_configure_args " in |
| 2594 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2595 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2596 | esac |
| 2597 | fi |
| 2598 | done |
| 2599 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2601 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2603 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2604 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2605 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2606 | ## -------------------- ## |
| 2607 | ## Main body of script. ## |
| 2608 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2609 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2610 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2611 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2612 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2613 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2614 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2615 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2616 | |
| 2617 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2618 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2619 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2620 | for ac_t in install-sh install.sh shtool; do |
| 2621 | if test -f "$ac_dir/$ac_t"; then |
| 2622 | ac_aux_dir=$ac_dir |
| 2623 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2624 | break 2 |
| 2625 | fi |
| 2626 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2627 | done |
| 2628 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2629 | as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2630 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2631 | |
| 2632 | # These three variables are undocumented and unsupported, |
| 2633 | # and are intended to be withdrawn in a future Autoconf release. |
| 2634 | # They can cause serious problems if a builder's source tree is in a directory |
| 2635 | # whose full name contains unusual characters. |
| 2636 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2637 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2638 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2639 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2640 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2641 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2642 | |
| 2643 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2644 | MCONFIG=./MCONFIG |
| 2645 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2646 | BINARY_TYPE=bin |
| 2647 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2648 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2649 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2650 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2651 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2652 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2653 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2654 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2655 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2656 | E2FSPROGS_YEAR=$YEAR |
| 2657 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2658 | E2FSPROGS_YEAR=19$YEAR |
| 2659 | else |
| 2660 | E2FSPROGS_YEAR=20$YEAR |
| 2661 | fi |
| 2662 | |
| 2663 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2664 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2665 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2666 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2667 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2668 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2669 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2670 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2671 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2672 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2673 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2674 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2675 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2676 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2677 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2678 | esac |
| 2679 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2680 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2681 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2682 | |
| 2683 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2684 | |
| 2685 | case $E2FSPROGS_VERSION in |
| 2686 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2687 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2688 | ;; |
| 2689 | *) |
| 2690 | E2FSPROGS_PKGVER="$base_ver" |
| 2691 | ;; |
| 2692 | esac |
| 2693 | |
| 2694 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2696 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2698 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2699 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2700 | |
| 2701 | |
| 2702 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2703 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2704 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2705 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2706 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2707 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2709 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2710 | if test "${ac_cv_build+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2711 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2712 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2713 | ac_build_alias=$build_alias |
| 2714 | test "x$ac_build_alias" = x && |
| 2715 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2716 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2717 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2718 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2719 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2720 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2721 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2723 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2724 | case $ac_cv_build in |
| 2725 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2726 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2727 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2728 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2729 | ac_save_IFS=$IFS; IFS='-' |
| 2730 | set x $ac_cv_build |
| 2731 | shift |
| 2732 | build_cpu=$1 |
| 2733 | build_vendor=$2 |
| 2734 | shift; shift |
| 2735 | # Remember, the first character of IFS is used to create $*, |
| 2736 | # except with old shells: |
| 2737 | build_os=$* |
| 2738 | IFS=$ac_save_IFS |
| 2739 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2740 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2741 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2743 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2744 | if test "${ac_cv_host+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2745 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2746 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2747 | if test "x$host_alias" = x; then |
| 2748 | ac_cv_host=$ac_cv_build |
| 2749 | else |
| 2750 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2751 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2752 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2753 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2754 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2756 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2757 | case $ac_cv_host in |
| 2758 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2759 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2760 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2761 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2762 | ac_save_IFS=$IFS; IFS='-' |
| 2763 | set x $ac_cv_host |
| 2764 | shift |
| 2765 | host_cpu=$1 |
| 2766 | host_vendor=$2 |
| 2767 | shift; shift |
| 2768 | # Remember, the first character of IFS is used to create $*, |
| 2769 | # except with old shells: |
| 2770 | host_os=$* |
| 2771 | IFS=$ac_save_IFS |
| 2772 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2773 | |
| 2774 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2775 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2776 | ac_ext=c |
| 2777 | ac_cpp='$CPP $CPPFLAGS' |
| 2778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2781 | if test -n "$ac_tool_prefix"; then |
| 2782 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2783 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2785 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2786 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2787 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2788 | else |
| 2789 | if test -n "$CC"; then |
| 2790 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2791 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2793 | for as_dir in $PATH |
| 2794 | do |
| 2795 | IFS=$as_save_IFS |
| 2796 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2797 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2798 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2799 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2800 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2801 | break 2 |
| 2802 | fi |
| 2803 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2804 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2805 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2806 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2807 | fi |
| 2808 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2809 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2810 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2812 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2813 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2815 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2816 | fi |
| 2817 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2818 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2819 | fi |
| 2820 | if test -z "$ac_cv_prog_CC"; then |
| 2821 | ac_ct_CC=$CC |
| 2822 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2823 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2825 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2826 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2827 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2828 | else |
| 2829 | if test -n "$ac_ct_CC"; then |
| 2830 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2831 | else |
| 2832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2833 | for as_dir in $PATH |
| 2834 | do |
| 2835 | IFS=$as_save_IFS |
| 2836 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2837 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2838 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2839 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2841 | break 2 |
| 2842 | fi |
| 2843 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2844 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2845 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2846 | |
| 2847 | fi |
| 2848 | fi |
| 2849 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2850 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2852 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2853 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2855 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2856 | fi |
| 2857 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2858 | if test "x$ac_ct_CC" = x; then |
| 2859 | CC="" |
| 2860 | else |
| 2861 | case $cross_compiling:$ac_tool_warned in |
| 2862 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2864 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2865 | ac_tool_warned=yes ;; |
| 2866 | esac |
| 2867 | CC=$ac_ct_CC |
| 2868 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2869 | else |
| 2870 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2871 | fi |
| 2872 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2873 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2874 | if test -n "$ac_tool_prefix"; then |
| 2875 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2876 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2878 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2879 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2880 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2881 | else |
| 2882 | if test -n "$CC"; then |
| 2883 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2884 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2886 | for as_dir in $PATH |
| 2887 | do |
| 2888 | IFS=$as_save_IFS |
| 2889 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2890 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2892 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2894 | break 2 |
| 2895 | fi |
| 2896 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2897 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2898 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2899 | |
| 2900 | fi |
| 2901 | fi |
| 2902 | CC=$ac_cv_prog_CC |
| 2903 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2905 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2906 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2908 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2909 | fi |
| 2910 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2911 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2912 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2913 | fi |
| 2914 | if test -z "$CC"; then |
| 2915 | # Extract the first word of "cc", so it can be a program name with args. |
| 2916 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2918 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2919 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2920 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2921 | else |
| 2922 | if test -n "$CC"; then |
| 2923 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2924 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2925 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2927 | for as_dir in $PATH |
| 2928 | do |
| 2929 | IFS=$as_save_IFS |
| 2930 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2931 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2932 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2934 | ac_prog_rejected=yes |
| 2935 | continue |
| 2936 | fi |
| 2937 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2939 | break 2 |
| 2940 | fi |
| 2941 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2942 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2943 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2944 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2945 | if test $ac_prog_rejected = yes; then |
| 2946 | # We found a bogon in the path, so make sure we never use it. |
| 2947 | set dummy $ac_cv_prog_CC |
| 2948 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2949 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2950 | # We chose a different compiler from the bogus one. |
| 2951 | # However, it has the same basename, so the bogon will be chosen |
| 2952 | # first if we set CC to just the basename; use the full file name. |
| 2953 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2955 | fi |
| 2956 | fi |
| 2957 | fi |
| 2958 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2959 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2960 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2962 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2963 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2965 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2966 | fi |
| 2967 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2968 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2969 | fi |
| 2970 | if test -z "$CC"; then |
| 2971 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2972 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2973 | do |
| 2974 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2975 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2977 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2978 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2979 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2980 | else |
| 2981 | if test -n "$CC"; then |
| 2982 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2983 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2985 | for as_dir in $PATH |
| 2986 | do |
| 2987 | IFS=$as_save_IFS |
| 2988 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2989 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2990 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2991 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2992 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2993 | break 2 |
| 2994 | fi |
| 2995 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2996 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2997 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2998 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2999 | fi |
| 3000 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3001 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3002 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3004 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3005 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3007 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3008 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3009 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3011 | test -n "$CC" && break |
| 3012 | done |
| 3013 | fi |
| 3014 | if test -z "$CC"; then |
| 3015 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3016 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3017 | do |
| 3018 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3019 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3021 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3022 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3023 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3024 | else |
| 3025 | if test -n "$ac_ct_CC"; then |
| 3026 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3027 | else |
| 3028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3029 | for as_dir in $PATH |
| 3030 | do |
| 3031 | IFS=$as_save_IFS |
| 3032 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3033 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3034 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3036 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3037 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3038 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3039 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3040 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3041 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3042 | |
| 3043 | fi |
| 3044 | fi |
| 3045 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3046 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3048 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3049 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3050 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3051 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3052 | fi |
| 3053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3054 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3055 | test -n "$ac_ct_CC" && break |
| 3056 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3058 | if test "x$ac_ct_CC" = x; then |
| 3059 | CC="" |
| 3060 | else |
| 3061 | case $cross_compiling:$ac_tool_warned in |
| 3062 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3065 | ac_tool_warned=yes ;; |
| 3066 | esac |
| 3067 | CC=$ac_ct_CC |
| 3068 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3069 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3070 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3071 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3072 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3073 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3074 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3075 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3076 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3077 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3078 | |
| 3079 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3080 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3081 | set X $ac_compile |
| 3082 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3083 | for ac_option in --version -v -V -qversion; do |
| 3084 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3085 | case "(($ac_try" in |
| 3086 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3087 | *) ac_try_echo=$ac_try;; |
| 3088 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3089 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3090 | $as_echo "$ac_try_echo"; } >&5 |
| 3091 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3092 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3093 | if test -s conftest.err; then |
| 3094 | sed '10a\ |
| 3095 | ... rest of stderr output deleted ... |
| 3096 | 10q' conftest.err >conftest.er1 |
| 3097 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3098 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3099 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3100 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3101 | test $ac_status = 0; } |
| 3102 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3103 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3105 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3107 | int |
| 3108 | main () |
| 3109 | { |
| 3110 | |
| 3111 | ; |
| 3112 | return 0; |
| 3113 | } |
| 3114 | _ACEOF |
| 3115 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3116 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3117 | # Try to create an executable without -o first, disregard a.out. |
| 3118 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3119 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3121 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3122 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3123 | |
| 3124 | # The possible output files: |
| 3125 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3126 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3127 | ac_rmfiles= |
| 3128 | for ac_file in $ac_files |
| 3129 | do |
| 3130 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3131 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3132 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3133 | esac |
| 3134 | done |
| 3135 | rm -f $ac_rmfiles |
| 3136 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3137 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3138 | case "(($ac_try" in |
| 3139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3140 | *) ac_try_echo=$ac_try;; |
| 3141 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3142 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3143 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3144 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3145 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3146 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3147 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3148 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3149 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3150 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3151 | # so that the user can short-circuit this test for compilers unknown to |
| 3152 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3153 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3154 | do |
| 3155 | test -f "$ac_file" || continue |
| 3156 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3157 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3158 | ;; |
| 3159 | [ab].out ) |
| 3160 | # We found the default executable, but exeext='' is most |
| 3161 | # certainly right. |
| 3162 | break;; |
| 3163 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3164 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3165 | then :; else |
| 3166 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3167 | fi |
| 3168 | # We set ac_cv_exeext here because the later test for it is not |
| 3169 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3170 | # argument, so we may need to know it at that point already. |
| 3171 | # Even if this section looks crufty: it has the advantage of |
| 3172 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3173 | break;; |
| 3174 | * ) |
| 3175 | break;; |
| 3176 | esac |
| 3177 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3178 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3180 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3181 | ac_file='' |
| 3182 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3183 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3185 | $as_echo "no" >&6; } |
| 3186 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3187 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3188 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3189 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3190 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3191 | { as_fn_set_status 77 |
| 3192 | as_fn_error "C compiler cannot create executables |
| 3193 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3194 | else |
| 3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3196 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3197 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3199 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3201 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3202 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3203 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3204 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3205 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3207 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3208 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3209 | case "(($ac_try" in |
| 3210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3211 | *) ac_try_echo=$ac_try;; |
| 3212 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3213 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3214 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3215 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3216 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3217 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3218 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3219 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3220 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3221 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3222 | # `rm'. |
| 3223 | for ac_file in conftest.exe conftest conftest.*; do |
| 3224 | test -f "$ac_file" || continue |
| 3225 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3226 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3227 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3228 | break;; |
| 3229 | * ) break;; |
| 3230 | esac |
| 3231 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3232 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3233 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3234 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3235 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3236 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3237 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3238 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3240 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3241 | |
| 3242 | rm -f conftest.$ac_ext |
| 3243 | EXEEXT=$ac_cv_exeext |
| 3244 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3246 | /* end confdefs.h. */ |
| 3247 | #include <stdio.h> |
| 3248 | int |
| 3249 | main () |
| 3250 | { |
| 3251 | FILE *f = fopen ("conftest.out", "w"); |
| 3252 | return ferror (f) || fclose (f) != 0; |
| 3253 | |
| 3254 | ; |
| 3255 | return 0; |
| 3256 | } |
| 3257 | _ACEOF |
| 3258 | ac_clean_files="$ac_clean_files conftest.out" |
| 3259 | # Check that the compiler produces executables we can run. If not, either |
| 3260 | # the compiler is broken, or we cross compile. |
| 3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3262 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3263 | if test "$cross_compiling" != yes; then |
| 3264 | { { ac_try="$ac_link" |
| 3265 | case "(($ac_try" in |
| 3266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3267 | *) ac_try_echo=$ac_try;; |
| 3268 | esac |
| 3269 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3270 | $as_echo "$ac_try_echo"; } >&5 |
| 3271 | (eval "$ac_link") 2>&5 |
| 3272 | ac_status=$? |
| 3273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3274 | test $ac_status = 0; } |
| 3275 | if { ac_try='./conftest$ac_cv_exeext' |
| 3276 | { { case "(($ac_try" in |
| 3277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3278 | *) ac_try_echo=$ac_try;; |
| 3279 | esac |
| 3280 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3281 | $as_echo "$ac_try_echo"; } >&5 |
| 3282 | (eval "$ac_try") 2>&5 |
| 3283 | ac_status=$? |
| 3284 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3285 | test $ac_status = 0; }; }; then |
| 3286 | cross_compiling=no |
| 3287 | else |
| 3288 | if test "$cross_compiling" = maybe; then |
| 3289 | cross_compiling=yes |
| 3290 | else |
| 3291 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3292 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3293 | as_fn_error "cannot run C compiled programs. |
| 3294 | If you meant to cross compile, use \`--host'. |
| 3295 | See \`config.log' for more details." "$LINENO" 5; } |
| 3296 | fi |
| 3297 | fi |
| 3298 | fi |
| 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3300 | $as_echo "$cross_compiling" >&6; } |
| 3301 | |
| 3302 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3303 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3305 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3306 | if test "${ac_cv_objext+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3307 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3308 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3310 | /* end confdefs.h. */ |
| 3311 | |
| 3312 | int |
| 3313 | main () |
| 3314 | { |
| 3315 | |
| 3316 | ; |
| 3317 | return 0; |
| 3318 | } |
| 3319 | _ACEOF |
| 3320 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3321 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3322 | case "(($ac_try" in |
| 3323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3324 | *) ac_try_echo=$ac_try;; |
| 3325 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3326 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3327 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3328 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3329 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3330 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3331 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3332 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3333 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3334 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3335 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3336 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3337 | break;; |
| 3338 | esac |
| 3339 | done |
| 3340 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3341 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3342 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3343 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3344 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3345 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3346 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3347 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3348 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3349 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3350 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3352 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3353 | OBJEXT=$ac_cv_objext |
| 3354 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3356 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3357 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3358 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3359 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3361 | /* end confdefs.h. */ |
| 3362 | |
| 3363 | int |
| 3364 | main () |
| 3365 | { |
| 3366 | #ifndef __GNUC__ |
| 3367 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3368 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3369 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3370 | ; |
| 3371 | return 0; |
| 3372 | } |
| 3373 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3374 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3375 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3376 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3377 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3378 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3380 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3381 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3382 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3384 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3385 | if test $ac_compiler_gnu = yes; then |
| 3386 | GCC=yes |
| 3387 | else |
| 3388 | GCC= |
| 3389 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3390 | ac_test_CFLAGS=${CFLAGS+set} |
| 3391 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3393 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3394 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3395 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3396 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3397 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3398 | ac_c_werror_flag=yes |
| 3399 | ac_cv_prog_cc_g=no |
| 3400 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3401 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3402 | /* end confdefs.h. */ |
| 3403 | |
| 3404 | int |
| 3405 | main () |
| 3406 | { |
| 3407 | |
| 3408 | ; |
| 3409 | return 0; |
| 3410 | } |
| 3411 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3412 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3413 | ac_cv_prog_cc_g=yes |
| 3414 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3415 | CFLAGS="" |
| 3416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3417 | /* end confdefs.h. */ |
| 3418 | |
| 3419 | int |
| 3420 | main () |
| 3421 | { |
| 3422 | |
| 3423 | ; |
| 3424 | return 0; |
| 3425 | } |
| 3426 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3427 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3428 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3429 | else |
| 3430 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3431 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3433 | /* end confdefs.h. */ |
| 3434 | |
| 3435 | int |
| 3436 | main () |
| 3437 | { |
| 3438 | |
| 3439 | ; |
| 3440 | return 0; |
| 3441 | } |
| 3442 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3443 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3444 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3445 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3447 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3449 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3450 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3451 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3452 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3454 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3455 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3456 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3457 | elif test $ac_cv_prog_cc_g = yes; then |
| 3458 | if test "$GCC" = yes; then |
| 3459 | CFLAGS="-g -O2" |
| 3460 | else |
| 3461 | CFLAGS="-g" |
| 3462 | fi |
| 3463 | else |
| 3464 | if test "$GCC" = yes; then |
| 3465 | CFLAGS="-O2" |
| 3466 | else |
| 3467 | CFLAGS= |
| 3468 | fi |
| 3469 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3471 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3472 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3473 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3474 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3475 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3476 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3478 | /* end confdefs.h. */ |
| 3479 | #include <stdarg.h> |
| 3480 | #include <stdio.h> |
| 3481 | #include <sys/types.h> |
| 3482 | #include <sys/stat.h> |
| 3483 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3484 | struct buf { int x; }; |
| 3485 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3486 | static char *e (p, i) |
| 3487 | char **p; |
| 3488 | int i; |
| 3489 | { |
| 3490 | return p[i]; |
| 3491 | } |
| 3492 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3493 | { |
| 3494 | char *s; |
| 3495 | va_list v; |
| 3496 | va_start (v,p); |
| 3497 | s = g (p, va_arg (v,int)); |
| 3498 | va_end (v); |
| 3499 | return s; |
| 3500 | } |
| 3501 | |
| 3502 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3503 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3504 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3505 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3506 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3507 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3508 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3509 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3510 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3511 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3512 | inside strings and character constants. */ |
| 3513 | #define FOO(x) 'x' |
| 3514 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3515 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3516 | int test (int i, double x); |
| 3517 | struct s1 {int (*f) (int a);}; |
| 3518 | struct s2 {int (*f) (double a);}; |
| 3519 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3520 | int argc; |
| 3521 | char **argv; |
| 3522 | int |
| 3523 | main () |
| 3524 | { |
| 3525 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3526 | ; |
| 3527 | return 0; |
| 3528 | } |
| 3529 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3530 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3531 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3532 | do |
| 3533 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3534 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3535 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3536 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3537 | rm -f core conftest.err conftest.$ac_objext |
| 3538 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3539 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3540 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3541 | CC=$ac_save_CC |
| 3542 | |
| 3543 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3544 | # AC_CACHE_VAL |
| 3545 | case "x$ac_cv_prog_cc_c89" in |
| 3546 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3548 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3549 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3551 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3552 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3553 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3555 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3556 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3557 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3558 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3559 | fi |
| 3560 | |
| 3561 | ac_ext=c |
| 3562 | ac_cpp='$CPP $CPPFLAGS' |
| 3563 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3564 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3565 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3566 | |
| 3567 | |
| 3568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3569 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 3570 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 3571 | $as_echo_n "(cached) " >&6 |
| 3572 | else |
| 3573 | ac_check_lib_save_LIBS=$LIBS |
| 3574 | LIBS="-ldl $LIBS" |
| 3575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3576 | /* end confdefs.h. */ |
| 3577 | |
| 3578 | /* Override any GCC internal prototype to avoid an error. |
| 3579 | Use char because int might match the return type of a GCC |
| 3580 | builtin and then its argument prototype would still apply. */ |
| 3581 | #ifdef __cplusplus |
| 3582 | extern "C" |
| 3583 | #endif |
| 3584 | char dlopen (); |
| 3585 | int |
| 3586 | main () |
| 3587 | { |
| 3588 | return dlopen (); |
| 3589 | ; |
| 3590 | return 0; |
| 3591 | } |
| 3592 | _ACEOF |
| 3593 | if ac_fn_c_try_link "$LINENO"; then : |
| 3594 | ac_cv_lib_dl_dlopen=yes |
| 3595 | else |
| 3596 | ac_cv_lib_dl_dlopen=no |
| 3597 | fi |
| 3598 | rm -f core conftest.err conftest.$ac_objext \ |
| 3599 | conftest$ac_exeext conftest.$ac_ext |
| 3600 | LIBS=$ac_check_lib_save_LIBS |
| 3601 | fi |
| 3602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3603 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 3604 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 3605 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3606 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3607 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3608 | |
| 3609 | fi |
| 3610 | |
| 3611 | |
| 3612 | WITH_DIET_LIBC= |
| 3613 | |
| 3614 | # Check whether --with-diet-libc was given. |
| 3615 | if test "${with_diet_libc+set}" = set; then : |
| 3616 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3617 | WITH_DIET_LIBC=yes |
| 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3619 | $as_echo "CC=$CC" >&6; } |
| 3620 | fi |
| 3621 | |
| 3622 | # Check whether --with-cc was given. |
| 3623 | if test "${with_cc+set}" = set; then : |
| 3624 | withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
| 3625 | fi |
| 3626 | |
| 3627 | |
| 3628 | # Check whether --with-ccopts was given. |
| 3629 | if test "${with_ccopts+set}" = set; then : |
| 3630 | withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
| 3631 | fi |
| 3632 | |
| 3633 | |
| 3634 | # Check whether --with-ldopts was given. |
| 3635 | if test "${with_ldopts+set}" = set; then : |
| 3636 | withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
| 3637 | fi |
| 3638 | |
| 3639 | ac_ext=c |
| 3640 | ac_cpp='$CPP $CPPFLAGS' |
| 3641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3644 | if test -n "$ac_tool_prefix"; then |
| 3645 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3646 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3648 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3649 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3650 | $as_echo_n "(cached) " >&6 |
| 3651 | else |
| 3652 | if test -n "$CC"; then |
| 3653 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3654 | else |
| 3655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3656 | for as_dir in $PATH |
| 3657 | do |
| 3658 | IFS=$as_save_IFS |
| 3659 | test -z "$as_dir" && as_dir=. |
| 3660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3662 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3664 | break 2 |
| 3665 | fi |
| 3666 | done |
| 3667 | done |
| 3668 | IFS=$as_save_IFS |
| 3669 | |
| 3670 | fi |
| 3671 | fi |
| 3672 | CC=$ac_cv_prog_CC |
| 3673 | if test -n "$CC"; then |
| 3674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3675 | $as_echo "$CC" >&6; } |
| 3676 | else |
| 3677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3678 | $as_echo "no" >&6; } |
| 3679 | fi |
| 3680 | |
| 3681 | |
| 3682 | fi |
| 3683 | if test -z "$ac_cv_prog_CC"; then |
| 3684 | ac_ct_CC=$CC |
| 3685 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3686 | set dummy gcc; ac_word=$2 |
| 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3688 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3689 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3690 | $as_echo_n "(cached) " >&6 |
| 3691 | else |
| 3692 | if test -n "$ac_ct_CC"; then |
| 3693 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3694 | else |
| 3695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3696 | for as_dir in $PATH |
| 3697 | do |
| 3698 | IFS=$as_save_IFS |
| 3699 | test -z "$as_dir" && as_dir=. |
| 3700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3702 | ac_cv_prog_ac_ct_CC="gcc" |
| 3703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3704 | break 2 |
| 3705 | fi |
| 3706 | done |
| 3707 | done |
| 3708 | IFS=$as_save_IFS |
| 3709 | |
| 3710 | fi |
| 3711 | fi |
| 3712 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3713 | if test -n "$ac_ct_CC"; then |
| 3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3715 | $as_echo "$ac_ct_CC" >&6; } |
| 3716 | else |
| 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3718 | $as_echo "no" >&6; } |
| 3719 | fi |
| 3720 | |
| 3721 | if test "x$ac_ct_CC" = x; then |
| 3722 | CC="" |
| 3723 | else |
| 3724 | case $cross_compiling:$ac_tool_warned in |
| 3725 | yes:) |
| 3726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3727 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3728 | ac_tool_warned=yes ;; |
| 3729 | esac |
| 3730 | CC=$ac_ct_CC |
| 3731 | fi |
| 3732 | else |
| 3733 | CC="$ac_cv_prog_CC" |
| 3734 | fi |
| 3735 | |
| 3736 | if test -z "$CC"; then |
| 3737 | if test -n "$ac_tool_prefix"; then |
| 3738 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3739 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3741 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3742 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3743 | $as_echo_n "(cached) " >&6 |
| 3744 | else |
| 3745 | if test -n "$CC"; then |
| 3746 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3747 | else |
| 3748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3749 | for as_dir in $PATH |
| 3750 | do |
| 3751 | IFS=$as_save_IFS |
| 3752 | test -z "$as_dir" && as_dir=. |
| 3753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3754 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3755 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3756 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3757 | break 2 |
| 3758 | fi |
| 3759 | done |
| 3760 | done |
| 3761 | IFS=$as_save_IFS |
| 3762 | |
| 3763 | fi |
| 3764 | fi |
| 3765 | CC=$ac_cv_prog_CC |
| 3766 | if test -n "$CC"; then |
| 3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3768 | $as_echo "$CC" >&6; } |
| 3769 | else |
| 3770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3771 | $as_echo "no" >&6; } |
| 3772 | fi |
| 3773 | |
| 3774 | |
| 3775 | fi |
| 3776 | fi |
| 3777 | if test -z "$CC"; then |
| 3778 | # Extract the first word of "cc", so it can be a program name with args. |
| 3779 | set dummy cc; ac_word=$2 |
| 3780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3781 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3782 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3783 | $as_echo_n "(cached) " >&6 |
| 3784 | else |
| 3785 | if test -n "$CC"; then |
| 3786 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3787 | else |
| 3788 | ac_prog_rejected=no |
| 3789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3790 | for as_dir in $PATH |
| 3791 | do |
| 3792 | IFS=$as_save_IFS |
| 3793 | test -z "$as_dir" && as_dir=. |
| 3794 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3795 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3796 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3797 | ac_prog_rejected=yes |
| 3798 | continue |
| 3799 | fi |
| 3800 | ac_cv_prog_CC="cc" |
| 3801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3802 | break 2 |
| 3803 | fi |
| 3804 | done |
| 3805 | done |
| 3806 | IFS=$as_save_IFS |
| 3807 | |
| 3808 | if test $ac_prog_rejected = yes; then |
| 3809 | # We found a bogon in the path, so make sure we never use it. |
| 3810 | set dummy $ac_cv_prog_CC |
| 3811 | shift |
| 3812 | if test $# != 0; then |
| 3813 | # We chose a different compiler from the bogus one. |
| 3814 | # However, it has the same basename, so the bogon will be chosen |
| 3815 | # first if we set CC to just the basename; use the full file name. |
| 3816 | shift |
| 3817 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3818 | fi |
| 3819 | fi |
| 3820 | fi |
| 3821 | fi |
| 3822 | CC=$ac_cv_prog_CC |
| 3823 | if test -n "$CC"; then |
| 3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3825 | $as_echo "$CC" >&6; } |
| 3826 | else |
| 3827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3828 | $as_echo "no" >&6; } |
| 3829 | fi |
| 3830 | |
| 3831 | |
| 3832 | fi |
| 3833 | if test -z "$CC"; then |
| 3834 | if test -n "$ac_tool_prefix"; then |
| 3835 | for ac_prog in cl.exe |
| 3836 | do |
| 3837 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3838 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3840 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3841 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3842 | $as_echo_n "(cached) " >&6 |
| 3843 | else |
| 3844 | if test -n "$CC"; then |
| 3845 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3846 | else |
| 3847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3848 | for as_dir in $PATH |
| 3849 | do |
| 3850 | IFS=$as_save_IFS |
| 3851 | test -z "$as_dir" && as_dir=. |
| 3852 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3854 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3856 | break 2 |
| 3857 | fi |
| 3858 | done |
| 3859 | done |
| 3860 | IFS=$as_save_IFS |
| 3861 | |
| 3862 | fi |
| 3863 | fi |
| 3864 | CC=$ac_cv_prog_CC |
| 3865 | if test -n "$CC"; then |
| 3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3867 | $as_echo "$CC" >&6; } |
| 3868 | else |
| 3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3870 | $as_echo "no" >&6; } |
| 3871 | fi |
| 3872 | |
| 3873 | |
| 3874 | test -n "$CC" && break |
| 3875 | done |
| 3876 | fi |
| 3877 | if test -z "$CC"; then |
| 3878 | ac_ct_CC=$CC |
| 3879 | for ac_prog in cl.exe |
| 3880 | do |
| 3881 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3882 | set dummy $ac_prog; ac_word=$2 |
| 3883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3884 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3885 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3886 | $as_echo_n "(cached) " >&6 |
| 3887 | else |
| 3888 | if test -n "$ac_ct_CC"; then |
| 3889 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3890 | else |
| 3891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3892 | for as_dir in $PATH |
| 3893 | do |
| 3894 | IFS=$as_save_IFS |
| 3895 | test -z "$as_dir" && as_dir=. |
| 3896 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3897 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3898 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3899 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3900 | break 2 |
| 3901 | fi |
| 3902 | done |
| 3903 | done |
| 3904 | IFS=$as_save_IFS |
| 3905 | |
| 3906 | fi |
| 3907 | fi |
| 3908 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3909 | if test -n "$ac_ct_CC"; then |
| 3910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3911 | $as_echo "$ac_ct_CC" >&6; } |
| 3912 | else |
| 3913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3914 | $as_echo "no" >&6; } |
| 3915 | fi |
| 3916 | |
| 3917 | |
| 3918 | test -n "$ac_ct_CC" && break |
| 3919 | done |
| 3920 | |
| 3921 | if test "x$ac_ct_CC" = x; then |
| 3922 | CC="" |
| 3923 | else |
| 3924 | case $cross_compiling:$ac_tool_warned in |
| 3925 | yes:) |
| 3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3927 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3928 | ac_tool_warned=yes ;; |
| 3929 | esac |
| 3930 | CC=$ac_ct_CC |
| 3931 | fi |
| 3932 | fi |
| 3933 | |
| 3934 | fi |
| 3935 | |
| 3936 | |
| 3937 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3938 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3939 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3940 | See \`config.log' for more details." "$LINENO" 5; } |
| 3941 | |
| 3942 | # Provide some information about the compiler. |
| 3943 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3944 | set X $ac_compile |
| 3945 | ac_compiler=$2 |
| 3946 | for ac_option in --version -v -V -qversion; do |
| 3947 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3948 | case "(($ac_try" in |
| 3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3950 | *) ac_try_echo=$ac_try;; |
| 3951 | esac |
| 3952 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3953 | $as_echo "$ac_try_echo"; } >&5 |
| 3954 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3955 | ac_status=$? |
| 3956 | if test -s conftest.err; then |
| 3957 | sed '10a\ |
| 3958 | ... rest of stderr output deleted ... |
| 3959 | 10q' conftest.err >conftest.er1 |
| 3960 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3961 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3962 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3963 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3964 | test $ac_status = 0; } |
| 3965 | done |
| 3966 | |
| 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3968 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3969 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3970 | $as_echo_n "(cached) " >&6 |
| 3971 | else |
| 3972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3973 | /* end confdefs.h. */ |
| 3974 | |
| 3975 | int |
| 3976 | main () |
| 3977 | { |
| 3978 | #ifndef __GNUC__ |
| 3979 | choke me |
| 3980 | #endif |
| 3981 | |
| 3982 | ; |
| 3983 | return 0; |
| 3984 | } |
| 3985 | _ACEOF |
| 3986 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3987 | ac_compiler_gnu=yes |
| 3988 | else |
| 3989 | ac_compiler_gnu=no |
| 3990 | fi |
| 3991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3992 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3993 | |
| 3994 | fi |
| 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3996 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3997 | if test $ac_compiler_gnu = yes; then |
| 3998 | GCC=yes |
| 3999 | else |
| 4000 | GCC= |
| 4001 | fi |
| 4002 | ac_test_CFLAGS=${CFLAGS+set} |
| 4003 | ac_save_CFLAGS=$CFLAGS |
| 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4005 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4006 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4007 | $as_echo_n "(cached) " >&6 |
| 4008 | else |
| 4009 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4010 | ac_c_werror_flag=yes |
| 4011 | ac_cv_prog_cc_g=no |
| 4012 | CFLAGS="-g" |
| 4013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4014 | /* end confdefs.h. */ |
| 4015 | |
| 4016 | int |
| 4017 | main () |
| 4018 | { |
| 4019 | |
| 4020 | ; |
| 4021 | return 0; |
| 4022 | } |
| 4023 | _ACEOF |
| 4024 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4025 | ac_cv_prog_cc_g=yes |
| 4026 | else |
| 4027 | CFLAGS="" |
| 4028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4029 | /* end confdefs.h. */ |
| 4030 | |
| 4031 | int |
| 4032 | main () |
| 4033 | { |
| 4034 | |
| 4035 | ; |
| 4036 | return 0; |
| 4037 | } |
| 4038 | _ACEOF |
| 4039 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4040 | |
| 4041 | else |
| 4042 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4043 | CFLAGS="-g" |
| 4044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4045 | /* end confdefs.h. */ |
| 4046 | |
| 4047 | int |
| 4048 | main () |
| 4049 | { |
| 4050 | |
| 4051 | ; |
| 4052 | return 0; |
| 4053 | } |
| 4054 | _ACEOF |
| 4055 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4056 | ac_cv_prog_cc_g=yes |
| 4057 | fi |
| 4058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4059 | fi |
| 4060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4061 | fi |
| 4062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4063 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4064 | fi |
| 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4066 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4067 | if test "$ac_test_CFLAGS" = set; then |
| 4068 | CFLAGS=$ac_save_CFLAGS |
| 4069 | elif test $ac_cv_prog_cc_g = yes; then |
| 4070 | if test "$GCC" = yes; then |
| 4071 | CFLAGS="-g -O2" |
| 4072 | else |
| 4073 | CFLAGS="-g" |
| 4074 | fi |
| 4075 | else |
| 4076 | if test "$GCC" = yes; then |
| 4077 | CFLAGS="-O2" |
| 4078 | else |
| 4079 | CFLAGS= |
| 4080 | fi |
| 4081 | fi |
| 4082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4083 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4084 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4085 | $as_echo_n "(cached) " >&6 |
| 4086 | else |
| 4087 | ac_cv_prog_cc_c89=no |
| 4088 | ac_save_CC=$CC |
| 4089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4090 | /* end confdefs.h. */ |
| 4091 | #include <stdarg.h> |
| 4092 | #include <stdio.h> |
| 4093 | #include <sys/types.h> |
| 4094 | #include <sys/stat.h> |
| 4095 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4096 | struct buf { int x; }; |
| 4097 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4098 | static char *e (p, i) |
| 4099 | char **p; |
| 4100 | int i; |
| 4101 | { |
| 4102 | return p[i]; |
| 4103 | } |
| 4104 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4105 | { |
| 4106 | char *s; |
| 4107 | va_list v; |
| 4108 | va_start (v,p); |
| 4109 | s = g (p, va_arg (v,int)); |
| 4110 | va_end (v); |
| 4111 | return s; |
| 4112 | } |
| 4113 | |
| 4114 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4115 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4116 | These don't provoke an error unfortunately, instead are silently treated |
| 4117 | as 'x'. The following induces an error, until -std is added to get |
| 4118 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4119 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4120 | that's true only with -std. */ |
| 4121 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4122 | |
| 4123 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4124 | inside strings and character constants. */ |
| 4125 | #define FOO(x) 'x' |
| 4126 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4127 | |
| 4128 | int test (int i, double x); |
| 4129 | struct s1 {int (*f) (int a);}; |
| 4130 | struct s2 {int (*f) (double a);}; |
| 4131 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4132 | int argc; |
| 4133 | char **argv; |
| 4134 | int |
| 4135 | main () |
| 4136 | { |
| 4137 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4138 | ; |
| 4139 | return 0; |
| 4140 | } |
| 4141 | _ACEOF |
| 4142 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4143 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4144 | do |
| 4145 | CC="$ac_save_CC $ac_arg" |
| 4146 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4147 | ac_cv_prog_cc_c89=$ac_arg |
| 4148 | fi |
| 4149 | rm -f core conftest.err conftest.$ac_objext |
| 4150 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4151 | done |
| 4152 | rm -f conftest.$ac_ext |
| 4153 | CC=$ac_save_CC |
| 4154 | |
| 4155 | fi |
| 4156 | # AC_CACHE_VAL |
| 4157 | case "x$ac_cv_prog_cc_c89" in |
| 4158 | x) |
| 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4160 | $as_echo "none needed" >&6; } ;; |
| 4161 | xno) |
| 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4163 | $as_echo "unsupported" >&6; } ;; |
| 4164 | *) |
| 4165 | CC="$CC $ac_cv_prog_cc_c89" |
| 4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4167 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4168 | esac |
| 4169 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4170 | |
| 4171 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4172 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4173 | ac_ext=c |
| 4174 | ac_cpp='$CPP $CPPFLAGS' |
| 4175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4178 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4179 | if test "$GCC" = yes; then |
| 4180 | RDYNAMIC="-rdynamic" |
| 4181 | |
| 4182 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4183 | ac_ext=c |
| 4184 | ac_cpp='$CPP $CPPFLAGS' |
| 4185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4189 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4190 | # On Suns, sometimes $CPP names a directory. |
| 4191 | if test -n "$CPP" && test -d "$CPP"; then |
| 4192 | CPP= |
| 4193 | fi |
| 4194 | if test -z "$CPP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4195 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4196 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4197 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4198 | # Double quotes because CPP needs to be expanded |
| 4199 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4200 | do |
| 4201 | ac_preproc_ok=false |
| 4202 | for ac_c_preproc_warn_flag in '' yes |
| 4203 | do |
| 4204 | # Use a header file that comes with gcc, so configuring glibc |
| 4205 | # with a fresh cross-compiler works. |
| 4206 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4207 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4208 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4209 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4211 | /* end confdefs.h. */ |
| 4212 | #ifdef __STDC__ |
| 4213 | # include <limits.h> |
| 4214 | #else |
| 4215 | # include <assert.h> |
| 4216 | #endif |
| 4217 | Syntax error |
| 4218 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4219 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4220 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4221 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4222 | # Broken: fails on valid input. |
| 4223 | continue |
| 4224 | fi |
| 4225 | rm -f conftest.err conftest.$ac_ext |
| 4226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4227 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4228 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4230 | /* end confdefs.h. */ |
| 4231 | #include <ac_nonexistent.h> |
| 4232 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4233 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4234 | # Broken: success on invalid input. |
| 4235 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4236 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4237 | # Passes both tests. |
| 4238 | ac_preproc_ok=: |
| 4239 | break |
| 4240 | fi |
| 4241 | rm -f conftest.err conftest.$ac_ext |
| 4242 | |
| 4243 | done |
| 4244 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4245 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4246 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4247 | break |
| 4248 | fi |
| 4249 | |
| 4250 | done |
| 4251 | ac_cv_prog_CPP=$CPP |
| 4252 | |
| 4253 | fi |
| 4254 | CPP=$ac_cv_prog_CPP |
| 4255 | else |
| 4256 | ac_cv_prog_CPP=$CPP |
| 4257 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4259 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4260 | ac_preproc_ok=false |
| 4261 | for ac_c_preproc_warn_flag in '' yes |
| 4262 | do |
| 4263 | # Use a header file that comes with gcc, so configuring glibc |
| 4264 | # with a fresh cross-compiler works. |
| 4265 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4266 | # <limits.h> exists even on freestanding compilers. |
| 4267 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4268 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4270 | /* end confdefs.h. */ |
| 4271 | #ifdef __STDC__ |
| 4272 | # include <limits.h> |
| 4273 | #else |
| 4274 | # include <assert.h> |
| 4275 | #endif |
| 4276 | Syntax error |
| 4277 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4278 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4279 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4280 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4281 | # Broken: fails on valid input. |
| 4282 | continue |
| 4283 | fi |
| 4284 | rm -f conftest.err conftest.$ac_ext |
| 4285 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4286 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4287 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4289 | /* end confdefs.h. */ |
| 4290 | #include <ac_nonexistent.h> |
| 4291 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4292 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4293 | # Broken: success on invalid input. |
| 4294 | continue |
| 4295 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4296 | # Passes both tests. |
| 4297 | ac_preproc_ok=: |
| 4298 | break |
| 4299 | fi |
| 4300 | rm -f conftest.err conftest.$ac_ext |
| 4301 | |
| 4302 | done |
| 4303 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4304 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4305 | if $ac_preproc_ok; then : |
| 4306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4307 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4308 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4309 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4310 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4311 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4312 | fi |
| 4313 | |
| 4314 | ac_ext=c |
| 4315 | ac_cpp='$CPP $CPPFLAGS' |
| 4316 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4317 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4318 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4319 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4321 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4322 | if test "$GCC" = yes |
| 4323 | then |
| 4324 | case "$host_cpu" in |
| 4325 | alpha) addcflags="-mieee" ;; |
| 4326 | esac |
| 4327 | fi |
| 4328 | if test "x$addcflags" != x |
| 4329 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4331 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4332 | CFLAGS="$addcflags $CFLAGS" |
| 4333 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4335 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4336 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4337 | LIB_EXT=.a |
| 4338 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4339 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4341 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4342 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4343 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4344 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4345 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4346 | fi |
| 4347 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4348 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4349 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4350 | then |
| 4351 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4353 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4354 | else |
| 4355 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4357 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4358 | fi |
| 4359 | |
| 4360 | else |
| 4361 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4363 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4364 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4365 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4366 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4367 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4368 | # Check whether --enable-symlink-install was given. |
| 4369 | if test "${enable_symlink_install+set}" = set; then : |
| 4370 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4371 | then |
| 4372 | LINK_INSTALL_FLAGS=-f |
| 4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4374 | $as_echo "Disabling symlinks for install" >&6; } |
| 4375 | else |
| 4376 | LINK_INSTALL_FLAGS=-sf |
| 4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4378 | $as_echo "Enabling symlinks for install" >&6; } |
| 4379 | fi |
| 4380 | |
| 4381 | else |
| 4382 | LINK_INSTALL_FLAGS=-f |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 |
| 4384 | $as_echo "Disabling symlinks for install by default" >&6; } |
| 4385 | |
| 4386 | fi |
| 4387 | |
| 4388 | |
| 4389 | # Check whether --enable-symlink-relative-symlinks was given. |
| 4390 | if test "${enable_symlink_relative_symlinks+set}" = set; then : |
| 4391 | enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" |
| 4392 | then |
| 4393 | SYMLINK_RELATIVE= |
| 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 |
| 4395 | $as_echo "Disabling relative symlinks for install" >&6; } |
| 4396 | else |
| 4397 | SYMLINK_RELATIVE=--relative |
| 4398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4399 | $as_echo "Enabling symlinks for install" >&6; } |
| 4400 | fi |
| 4401 | |
| 4402 | else |
| 4403 | SYMLINK_RELATIVE= |
| 4404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 |
| 4405 | $as_echo "Disabling relative symlinks for install by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4406 | |
| 4407 | fi |
| 4408 | |
| 4409 | |
| 4410 | # Check whether --enable-symlink-build was given. |
| 4411 | if test "${enable_symlink_build+set}" = set; then : |
| 4412 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4413 | then |
| 4414 | LINK_BUILD_FLAGS= |
| 4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4416 | $as_echo "Disabling symlinks for build" >&6; } |
| 4417 | else |
| 4418 | LINK_BUILD_FLAGS=-s |
| 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4420 | $as_echo "Enabling symlinks for build" >&6; } |
| 4421 | fi |
| 4422 | |
| 4423 | else |
| 4424 | LINK_BUILD_FLAGS= |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 4425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 |
| 4426 | $as_echo "Disabling symlinks for build by default" >&6; } |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4427 | |
| 4428 | fi |
| 4429 | |
| 4430 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4431 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4432 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4433 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4434 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4436 | $as_echo "Disabling verbose make commands" >&6; } |
| 4437 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame^] | 4438 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4439 | Q=@ |
| 4440 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4442 | $as_echo "Enabling verbose make commands" >&6; } |
| 4443 | E=@\\# |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame^] | 4444 | ES=\\# |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4445 | Q= |
| 4446 | fi |
| 4447 | |
| 4448 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4450 | $as_echo "Disabling verbose make commands" >&6; } |
| 4451 | E=@echo |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame^] | 4452 | ES=echo |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4453 | Q=@ |
| 4454 | |
| 4455 | fi |
| 4456 | |
| 4457 | |
| 4458 | |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame^] | 4459 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4460 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4461 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4462 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4463 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4465 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4466 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4467 | |
| 4468 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4469 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4471 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4472 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4473 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4474 | fi |
| 4475 | |
| 4476 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4478 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4479 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4480 | fi |
| 4481 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4483 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4484 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4485 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4486 | then |
| 4487 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4489 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4490 | else |
| 4491 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4492 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4493 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4495 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4496 | fi |
| 4497 | |
| 4498 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4499 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4500 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4501 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4503 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4504 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4505 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4506 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4507 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4508 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4509 | LDFLAG_DYNAMIC= |
| 4510 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4511 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4512 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4513 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4514 | then |
| 4515 | ELF_CMT=# |
| 4516 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4518 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4519 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4520 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4521 | ELF_CMT= |
| 4522 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4523 | case "$host_os" in |
| 4524 | solaris2.*) |
| 4525 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4526 | ;; |
| 4527 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4528 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4529 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4530 | PRIVATE_LIBS_CMT=# |
| 4531 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4533 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4534 | fi |
| 4535 | |
| 4536 | else |
| 4537 | MAKEFILE_ELF=/dev/null |
| 4538 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4540 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4541 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4542 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4543 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4545 | |
| 4546 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4547 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4548 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4549 | then |
| 4550 | BSDLIB_CMT=# |
| 4551 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4553 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4554 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4555 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4556 | BSDLIB_CMT= |
| 4557 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4558 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4559 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4560 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4561 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4562 | LIB_EXT=.dylib |
| 4563 | ;; |
| 4564 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4566 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4567 | fi |
| 4568 | |
| 4569 | else |
| 4570 | MAKEFILE_BSDLIB=/dev/null |
| 4571 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4573 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4575 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4576 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4577 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4578 | |
| 4579 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4580 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4581 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4582 | then |
| 4583 | PROFILE_CMT=# |
| 4584 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4586 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4587 | else |
| 4588 | PROFILE_CMT= |
| 4589 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4590 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4592 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4593 | fi |
| 4594 | |
| 4595 | else |
| 4596 | PROFILE_CMT=# |
| 4597 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4599 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4601 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4602 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4603 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4604 | |
| 4605 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4606 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4607 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4608 | then |
| 4609 | CHECKER_CMT=# |
| 4610 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4612 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4613 | else |
| 4614 | CHECKER_CMT= |
| 4615 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4617 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4618 | fi |
| 4619 | |
| 4620 | else |
| 4621 | CHECKER_CMT=# |
| 4622 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4624 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4625 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4626 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4627 | |
| 4628 | |
| 4629 | |
| 4630 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4632 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4633 | |
| 4634 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4635 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4636 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4637 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4638 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4640 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4641 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4642 | |
| 4643 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4644 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4646 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4647 | fi |
| 4648 | |
| 4649 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4651 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4653 | fi |
| 4654 | |
| 4655 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4656 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4657 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4658 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4660 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4661 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4662 | |
| 4663 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4664 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4666 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4667 | fi |
| 4668 | |
| 4669 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4671 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4672 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4673 | fi |
| 4674 | |
| 4675 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4676 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4677 | enableval=$enable_testio_debug; |
| 4678 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4679 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4681 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4682 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4683 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4684 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4685 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4686 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4688 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4689 | fi |
| 4690 | |
| 4691 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4693 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4694 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4695 | |
| 4696 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4697 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4698 | fi |
| 4699 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4700 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4701 | |
| 4702 | |
| 4703 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4704 | if test -n "$ac_tool_prefix"; then |
| 4705 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4706 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4708 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4709 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4710 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4711 | else |
| 4712 | case $PKG_CONFIG in |
| 4713 | [\\/]* | ?:[\\/]*) |
| 4714 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4715 | ;; |
| 4716 | *) |
| 4717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4718 | for as_dir in $PATH |
| 4719 | do |
| 4720 | IFS=$as_save_IFS |
| 4721 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4722 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4724 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4726 | break 2 |
| 4727 | fi |
| 4728 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4729 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4730 | IFS=$as_save_IFS |
| 4731 | |
| 4732 | ;; |
| 4733 | esac |
| 4734 | fi |
| 4735 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4736 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4738 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4739 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4741 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4742 | fi |
| 4743 | |
| 4744 | |
| 4745 | fi |
| 4746 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4747 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4748 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4749 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4751 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4752 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4753 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4754 | else |
| 4755 | case $ac_pt_PKG_CONFIG in |
| 4756 | [\\/]* | ?:[\\/]*) |
| 4757 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4758 | ;; |
| 4759 | *) |
| 4760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4761 | for as_dir in $PATH |
| 4762 | do |
| 4763 | IFS=$as_save_IFS |
| 4764 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4765 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4766 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4767 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4768 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4769 | break 2 |
| 4770 | fi |
| 4771 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4772 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4773 | IFS=$as_save_IFS |
| 4774 | |
| 4775 | ;; |
| 4776 | esac |
| 4777 | fi |
| 4778 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4779 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4781 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4782 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4784 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4785 | fi |
| 4786 | |
| 4787 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4788 | PKG_CONFIG="" |
| 4789 | else |
| 4790 | case $cross_compiling:$ac_tool_warned in |
| 4791 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4793 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4794 | ac_tool_warned=yes ;; |
| 4795 | esac |
| 4796 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4797 | fi |
| 4798 | else |
| 4799 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4800 | fi |
| 4801 | |
| 4802 | fi |
| 4803 | if test -n "$PKG_CONFIG"; then |
| 4804 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4806 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4807 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4809 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4810 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4812 | $as_echo "no" >&6; } |
| 4813 | PKG_CONFIG="" |
| 4814 | fi |
| 4815 | |
| 4816 | fi |
| 4817 | LIBUUID= |
| 4818 | DEPLIBUUID= |
| 4819 | STATIC_LIBUUID= |
| 4820 | DEPSTATIC_LIBUUID= |
| 4821 | PROFILED_LIBUUID= |
| 4822 | DEPPROFILED_LIBUUID= |
| 4823 | UUID_CMT= |
| 4824 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4825 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4826 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4827 | then |
| 4828 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4829 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4830 | fi |
| 4831 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4833 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4834 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4835 | $as_echo_n "(cached) " >&6 |
| 4836 | else |
| 4837 | ac_check_lib_save_LIBS=$LIBS |
| 4838 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4840 | /* end confdefs.h. */ |
| 4841 | |
| 4842 | /* Override any GCC internal prototype to avoid an error. |
| 4843 | Use char because int might match the return type of a GCC |
| 4844 | builtin and then its argument prototype would still apply. */ |
| 4845 | #ifdef __cplusplus |
| 4846 | extern "C" |
| 4847 | #endif |
| 4848 | char uuid_generate (); |
| 4849 | int |
| 4850 | main () |
| 4851 | { |
| 4852 | return uuid_generate (); |
| 4853 | ; |
| 4854 | return 0; |
| 4855 | } |
| 4856 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4857 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4858 | ac_cv_lib_uuid_uuid_generate=yes |
| 4859 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4860 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4861 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4862 | rm -f core conftest.err conftest.$ac_objext \ |
| 4863 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4864 | LIBS=$ac_check_lib_save_LIBS |
| 4865 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4867 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4868 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4869 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4870 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4871 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4872 | as_fn_error "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4873 | fi |
| 4874 | |
| 4875 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4877 | $as_echo "Disabling private uuid library" >&6; } |
| 4878 | else |
| 4879 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4880 | DEPLIBUUID=$LIBUUID |
| 4881 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4882 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4883 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4884 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4886 | $as_echo "Enabling private uuid library" >&6; } |
| 4887 | fi |
| 4888 | |
| 4889 | else |
| 4890 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4891 | DEPLIBUUID=$LIBUUID |
| 4892 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4893 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4894 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4895 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4897 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4898 | |
| 4899 | fi |
| 4900 | |
| 4901 | |
| 4902 | |
| 4903 | |
| 4904 | |
| 4905 | |
| 4906 | |
| 4907 | |
| 4908 | |
| 4909 | |
| 4910 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4911 | if test -n "$ac_tool_prefix"; then |
| 4912 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4913 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4915 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4916 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4917 | $as_echo_n "(cached) " >&6 |
| 4918 | else |
| 4919 | case $PKG_CONFIG in |
| 4920 | [\\/]* | ?:[\\/]*) |
| 4921 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4922 | ;; |
| 4923 | *) |
| 4924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4925 | for as_dir in $PATH |
| 4926 | do |
| 4927 | IFS=$as_save_IFS |
| 4928 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4929 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4930 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4931 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4933 | break 2 |
| 4934 | fi |
| 4935 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4936 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4937 | IFS=$as_save_IFS |
| 4938 | |
| 4939 | ;; |
| 4940 | esac |
| 4941 | fi |
| 4942 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4943 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4945 | $as_echo "$PKG_CONFIG" >&6; } |
| 4946 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4948 | $as_echo "no" >&6; } |
| 4949 | fi |
| 4950 | |
| 4951 | |
| 4952 | fi |
| 4953 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4954 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4955 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4956 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4958 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4959 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4960 | $as_echo_n "(cached) " >&6 |
| 4961 | else |
| 4962 | case $ac_pt_PKG_CONFIG in |
| 4963 | [\\/]* | ?:[\\/]*) |
| 4964 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4965 | ;; |
| 4966 | *) |
| 4967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4968 | for as_dir in $PATH |
| 4969 | do |
| 4970 | IFS=$as_save_IFS |
| 4971 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4972 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4973 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4974 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4975 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4976 | break 2 |
| 4977 | fi |
| 4978 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4979 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4980 | IFS=$as_save_IFS |
| 4981 | |
| 4982 | ;; |
| 4983 | esac |
| 4984 | fi |
| 4985 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4986 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4988 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4989 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4991 | $as_echo "no" >&6; } |
| 4992 | fi |
| 4993 | |
| 4994 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4995 | PKG_CONFIG="" |
| 4996 | else |
| 4997 | case $cross_compiling:$ac_tool_warned in |
| 4998 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5000 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5001 | ac_tool_warned=yes ;; |
| 5002 | esac |
| 5003 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5004 | fi |
| 5005 | else |
| 5006 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5007 | fi |
| 5008 | |
| 5009 | fi |
| 5010 | if test -n "$PKG_CONFIG"; then |
| 5011 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5013 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5014 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5016 | $as_echo "yes" >&6; } |
| 5017 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5019 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5020 | PKG_CONFIG="" |
| 5021 | fi |
| 5022 | |
| 5023 | fi |
| 5024 | LIBBLKID= |
| 5025 | DEPLIBBLKID= |
| 5026 | STATIC_LIBBLKID= |
| 5027 | DEPSTATIC_LIBBLKID= |
| 5028 | PROFILED_LIBBLKID= |
| 5029 | DEPPROFILED_LIBBLKID= |
| 5030 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5031 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5032 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5033 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5034 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5035 | then |
| 5036 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5037 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5038 | fi |
| 5039 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5041 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5042 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5043 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5044 | else |
| 5045 | ac_check_lib_save_LIBS=$LIBS |
| 5046 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5048 | /* end confdefs.h. */ |
| 5049 | |
| 5050 | /* Override any GCC internal prototype to avoid an error. |
| 5051 | Use char because int might match the return type of a GCC |
| 5052 | builtin and then its argument prototype would still apply. */ |
| 5053 | #ifdef __cplusplus |
| 5054 | extern "C" |
| 5055 | #endif |
| 5056 | char blkid_get_cache (); |
| 5057 | int |
| 5058 | main () |
| 5059 | { |
| 5060 | return blkid_get_cache (); |
| 5061 | ; |
| 5062 | return 0; |
| 5063 | } |
| 5064 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5065 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5066 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5067 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5068 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5069 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5070 | rm -f core conftest.err conftest.$ac_objext \ |
| 5071 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5072 | LIBS=$ac_check_lib_save_LIBS |
| 5073 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5075 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5076 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5077 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5078 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5079 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5080 | as_fn_error "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5081 | fi |
| 5082 | |
| 5083 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5085 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5086 | else |
| 5087 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5088 | DEPLIBBLKID=$LIBBLKID |
| 5089 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5090 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5091 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5092 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5093 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5094 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5096 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5097 | fi |
| 5098 | |
| 5099 | else |
| 5100 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5101 | DEPLIBBLKID=$LIBBLKID |
| 5102 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5103 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5104 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5105 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5106 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5107 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5109 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5110 | |
| 5111 | fi |
| 5112 | |
| 5113 | |
| 5114 | |
| 5115 | |
| 5116 | |
| 5117 | |
| 5118 | |
| 5119 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5120 | |
| 5121 | |
| 5122 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5123 | if test -n "$ac_tool_prefix"; then |
| 5124 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5125 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5127 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5128 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 5129 | $as_echo_n "(cached) " >&6 |
| 5130 | else |
| 5131 | case $PKG_CONFIG in |
| 5132 | [\\/]* | ?:[\\/]*) |
| 5133 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5134 | ;; |
| 5135 | *) |
| 5136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5137 | for as_dir in $PATH |
| 5138 | do |
| 5139 | IFS=$as_save_IFS |
| 5140 | test -z "$as_dir" && as_dir=. |
| 5141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5143 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5145 | break 2 |
| 5146 | fi |
| 5147 | done |
| 5148 | done |
| 5149 | IFS=$as_save_IFS |
| 5150 | |
| 5151 | ;; |
| 5152 | esac |
| 5153 | fi |
| 5154 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5155 | if test -n "$PKG_CONFIG"; then |
| 5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5157 | $as_echo "$PKG_CONFIG" >&6; } |
| 5158 | else |
| 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5160 | $as_echo "no" >&6; } |
| 5161 | fi |
| 5162 | |
| 5163 | |
| 5164 | fi |
| 5165 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5166 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5167 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5168 | set dummy pkg-config; ac_word=$2 |
| 5169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5170 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5171 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| 5172 | $as_echo_n "(cached) " >&6 |
| 5173 | else |
| 5174 | case $ac_pt_PKG_CONFIG in |
| 5175 | [\\/]* | ?:[\\/]*) |
| 5176 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5177 | ;; |
| 5178 | *) |
| 5179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5180 | for as_dir in $PATH |
| 5181 | do |
| 5182 | IFS=$as_save_IFS |
| 5183 | test -z "$as_dir" && as_dir=. |
| 5184 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5185 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5186 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5187 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5188 | break 2 |
| 5189 | fi |
| 5190 | done |
| 5191 | done |
| 5192 | IFS=$as_save_IFS |
| 5193 | |
| 5194 | ;; |
| 5195 | esac |
| 5196 | fi |
| 5197 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5198 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5200 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5201 | else |
| 5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5203 | $as_echo "no" >&6; } |
| 5204 | fi |
| 5205 | |
| 5206 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5207 | PKG_CONFIG="" |
| 5208 | else |
| 5209 | case $cross_compiling:$ac_tool_warned in |
| 5210 | yes:) |
| 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5212 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5213 | ac_tool_warned=yes ;; |
| 5214 | esac |
| 5215 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5216 | fi |
| 5217 | else |
| 5218 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5219 | fi |
| 5220 | |
| 5221 | fi |
| 5222 | if test -n "$PKG_CONFIG"; then |
| 5223 | _pkg_min_version=0.9.0 |
| 5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5225 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5226 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5228 | $as_echo "yes" >&6; } |
| 5229 | else |
| 5230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5231 | $as_echo "no" >&6; } |
| 5232 | PKG_CONFIG="" |
| 5233 | fi |
| 5234 | |
| 5235 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5236 | |
| 5237 | # Check whether --enable-quota was given. |
| 5238 | if test "${enable_quota+set}" = set; then : |
| 5239 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5240 | then |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5242 | $as_echo "Disabling quota support" >&6; } |
| 5243 | else |
| 5244 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5245 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5247 | $as_echo "Enabling quota support" >&6; } |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5248 | fi |
| 5249 | |
| 5250 | else |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame] | 5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
| 5252 | $as_echo "Disabling quota support by default" >&6; } |
| 5253 | |
| 5254 | fi |
| 5255 | |
| 5256 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5257 | DEPLIBQUOTA=$LIBQUOTA |
| 5258 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5259 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5260 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5261 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5262 | |
| 5263 | |
| 5264 | |
| 5265 | |
| 5266 | |
| 5267 | |
| 5268 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5269 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5270 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5271 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5272 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5274 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5275 | DEBUGFS_CMT="#" |
| 5276 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5277 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5279 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5280 | fi |
| 5281 | |
| 5282 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5284 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5285 | DEBUGFS_CMT= |
| 5286 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5287 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5288 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5289 | |
| 5290 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5291 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5292 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5293 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5295 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5296 | IMAGER_CMT="#" |
| 5297 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5298 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5300 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5301 | fi |
| 5302 | |
| 5303 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5305 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5306 | IMAGER_CMT= |
| 5307 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5308 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5309 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5310 | |
| 5311 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5312 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5313 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5314 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5316 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5317 | RESIZER_CMT="#" |
| 5318 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5319 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5321 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5322 | fi |
| 5323 | |
| 5324 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5326 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5327 | RESIZER_CMT= |
| 5328 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5329 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5330 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5331 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5332 | # Check whether --enable-defrag was given. |
| 5333 | if test "${enable_defrag+set}" = set; then : |
| 5334 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5335 | then |
| 5336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5337 | $as_echo "Disabling e4defrag support" >&6; } |
| 5338 | DEFRAG_CMT="#" |
| 5339 | else |
| 5340 | DEFRAG_CMT= |
| 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5342 | $as_echo "Enabling e4defrag support" >&6; } |
| 5343 | fi |
| 5344 | |
| 5345 | else |
| 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
| 5347 | $as_echo "Enabling e4defrag support by default" >&6; } |
| 5348 | DEFRAG_CMT= |
| 5349 | |
| 5350 | fi |
| 5351 | |
| 5352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5353 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5354 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5355 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5356 | then |
| 5357 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5359 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5360 | else |
| 5361 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5363 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5364 | fi |
| 5365 | |
| 5366 | else |
| 5367 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5368 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5369 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5371 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5372 | ;; |
| 5373 | *) |
| 5374 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5376 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5377 | esac |
| 5378 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5379 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5380 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5381 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5382 | |
| 5383 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5384 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5385 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5386 | then |
| 5387 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5389 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5390 | else |
| 5391 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5393 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5394 | fi |
| 5395 | |
| 5396 | else |
| 5397 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5399 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5400 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5401 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5402 | |
| 5403 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5404 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5405 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5406 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5407 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5408 | then |
| 5409 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5411 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5412 | else |
| 5413 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5415 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5416 | fi |
| 5417 | |
| 5418 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5419 | if test -n "$WITH_DIET_LIBC" |
| 5420 | then |
| 5421 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5423 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5424 | else |
| 5425 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5427 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5428 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5429 | |
| 5430 | fi |
| 5431 | |
| 5432 | if test "$try_tls" = "yes" |
| 5433 | then |
| 5434 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5436 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5437 | if test "${ac_cv_tls+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5438 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5439 | else |
| 5440 | |
| 5441 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5442 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5443 | case $ax_tls_keyword in |
| 5444 | none) ac_cv_tls=none ; break ;; |
| 5445 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5447 | /* end confdefs.h. */ |
| 5448 | #include <stdlib.h> |
| 5449 | static void |
| 5450 | foo(void) { |
| 5451 | static $ax_tls_keyword int bar; |
| 5452 | exit(1); |
| 5453 | } |
| 5454 | int |
| 5455 | main () |
| 5456 | { |
| 5457 | |
| 5458 | ; |
| 5459 | return 0; |
| 5460 | } |
| 5461 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5462 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5463 | ac_cv_tls=$ax_tls_keyword ; break |
| 5464 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5465 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5466 | |
| 5467 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5468 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5469 | esac |
| 5470 | done |
| 5471 | |
| 5472 | fi |
| 5473 | |
| 5474 | |
| 5475 | if test "$ac_cv_tls" != "none"; then |
| 5476 | |
| 5477 | cat >>confdefs.h <<_ACEOF |
| 5478 | #define TLS $ac_cv_tls |
| 5479 | _ACEOF |
| 5480 | |
| 5481 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5483 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5484 | |
| 5485 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5486 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5487 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5488 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5489 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5490 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5492 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5493 | UUIDD_CMT="#" |
| 5494 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5495 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5496 | |
| 5497 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5499 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5500 | fi |
| 5501 | |
| 5502 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5503 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5504 | |
| 5505 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5507 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5508 | |
| 5509 | fi |
| 5510 | |
| 5511 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5512 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5513 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5514 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5515 | PACKAGE=e2fsprogs |
| 5516 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5517 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5519 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5520 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5521 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5522 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5524 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5525 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5526 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5527 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5528 | |
| 5529 | |
| 5530 | |
| 5531 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5533 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5534 | set x ${MAKE-make} |
| 5535 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5536 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5537 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5538 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5539 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5540 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5541 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5542 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5543 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5544 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5545 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5546 | *@@@%%%=?*=@@@%%%*) |
| 5547 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5548 | *) |
| 5549 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5550 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5551 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5552 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5553 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5555 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5556 | SET_MAKE= |
| 5557 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5559 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5560 | SET_MAKE="MAKE=${MAKE-make}" |
| 5561 | fi |
| 5562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5563 | # Find a good install program. We prefer a C program (faster), |
| 5564 | # so one script is as good as another. But avoid the broken or |
| 5565 | # incompatible versions: |
| 5566 | # SysV /etc/install, /usr/sbin/install |
| 5567 | # SunOS /usr/etc/install |
| 5568 | # IRIX /sbin/install |
| 5569 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5570 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5571 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5572 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5573 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5574 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5575 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5576 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5578 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5579 | if test -z "$INSTALL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5580 | if test "${ac_cv_path_install+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5581 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5582 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5584 | for as_dir in $PATH |
| 5585 | do |
| 5586 | IFS=$as_save_IFS |
| 5587 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5588 | # Account for people who put trailing slashes in PATH elements. |
| 5589 | case $as_dir/ in #(( |
| 5590 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5591 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5592 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5593 | /usr/ucb/* ) ;; |
| 5594 | *) |
| 5595 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5596 | # Don't use installbsd from OSF since it installs stuff as root |
| 5597 | # by default. |
| 5598 | for ac_prog in ginstall scoinst install; do |
| 5599 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5600 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5601 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5602 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5603 | # AIX install. It has an incompatible calling convention. |
| 5604 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5605 | elif test $ac_prog = install && |
| 5606 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5607 | # program-specific install script used by HP pwplus--don't use. |
| 5608 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5609 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5610 | rm -rf conftest.one conftest.two conftest.dir |
| 5611 | echo one > conftest.one |
| 5612 | echo two > conftest.two |
| 5613 | mkdir conftest.dir |
| 5614 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5615 | test -s conftest.one && test -s conftest.two && |
| 5616 | test -s conftest.dir/conftest.one && |
| 5617 | test -s conftest.dir/conftest.two |
| 5618 | then |
| 5619 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5620 | break 3 |
| 5621 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5622 | fi |
| 5623 | fi |
| 5624 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5625 | done |
| 5626 | ;; |
| 5627 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5628 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5629 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5630 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5631 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5632 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5633 | |
| 5634 | fi |
| 5635 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5636 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5637 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5638 | # As a last resort, use the slow shell script. Don't cache a |
| 5639 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5640 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5641 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5642 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5643 | fi |
| 5644 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5646 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5647 | |
| 5648 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5649 | # It thinks the first close brace ends the variable substitution. |
| 5650 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5651 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5652 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5653 | |
| 5654 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5655 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5656 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5657 | MKINSTALLDIRS= |
| 5658 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5659 | case "$ac_aux_dir" in |
| 5660 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5661 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5662 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5663 | fi |
| 5664 | if test -z "$MKINSTALLDIRS"; then |
| 5665 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5666 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5667 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5668 | |
| 5669 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5671 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5672 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5673 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5674 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5675 | else |
| 5676 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5677 | fi |
| 5678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5680 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5681 | |
| 5682 | |
| 5683 | |
| 5684 | |
| 5685 | |
| 5686 | |
| 5687 | # Prepare PATH_SEPARATOR. |
| 5688 | # The user is always right. |
| 5689 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5690 | echo "#! /bin/sh" >conf$$.sh |
| 5691 | echo "exit 0" >>conf$$.sh |
| 5692 | chmod +x conf$$.sh |
| 5693 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5694 | PATH_SEPARATOR=';' |
| 5695 | else |
| 5696 | PATH_SEPARATOR=: |
| 5697 | fi |
| 5698 | rm -f conf$$.sh |
| 5699 | fi |
| 5700 | |
| 5701 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5702 | # as systems may use methods other than mode bits to determine executability. |
| 5703 | cat >conf$$.file <<_ASEOF |
| 5704 | #! /bin/sh |
| 5705 | exit 0 |
| 5706 | _ASEOF |
| 5707 | chmod +x conf$$.file |
| 5708 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5709 | ac_executable_p="test -x" |
| 5710 | else |
| 5711 | ac_executable_p="test -f" |
| 5712 | fi |
| 5713 | rm -f conf$$.file |
| 5714 | |
| 5715 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5716 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5718 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5719 | if test "${ac_cv_path_MSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5720 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5721 | else |
| 5722 | case "$MSGFMT" in |
| 5723 | [\\/]* | ?:[\\/]*) |
| 5724 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5725 | ;; |
| 5726 | *) |
| 5727 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5728 | for ac_dir in $PATH; do |
| 5729 | IFS="$ac_save_IFS" |
| 5730 | test -z "$ac_dir" && ac_dir=. |
| 5731 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5732 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5733 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5734 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5735 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5736 | break 2 |
| 5737 | fi |
| 5738 | fi |
| 5739 | done |
| 5740 | done |
| 5741 | IFS="$ac_save_IFS" |
| 5742 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5743 | ;; |
| 5744 | esac |
| 5745 | fi |
| 5746 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5747 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5749 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5750 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5752 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5753 | fi |
| 5754 | |
| 5755 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5756 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5758 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5759 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5760 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5761 | else |
| 5762 | case $GMSGFMT in |
| 5763 | [\\/]* | ?:[\\/]*) |
| 5764 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5765 | ;; |
| 5766 | *) |
| 5767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5768 | for as_dir in $PATH |
| 5769 | do |
| 5770 | IFS=$as_save_IFS |
| 5771 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5772 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5773 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5774 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5775 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5776 | break 2 |
| 5777 | fi |
| 5778 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5779 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5780 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5781 | |
| 5782 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5783 | ;; |
| 5784 | esac |
| 5785 | fi |
| 5786 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5787 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5789 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5790 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5792 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5793 | fi |
| 5794 | |
| 5795 | |
| 5796 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5797 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5798 | # Prepare PATH_SEPARATOR. |
| 5799 | # The user is always right. |
| 5800 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5801 | echo "#! /bin/sh" >conf$$.sh |
| 5802 | echo "exit 0" >>conf$$.sh |
| 5803 | chmod +x conf$$.sh |
| 5804 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5805 | PATH_SEPARATOR=';' |
| 5806 | else |
| 5807 | PATH_SEPARATOR=: |
| 5808 | fi |
| 5809 | rm -f conf$$.sh |
| 5810 | fi |
| 5811 | |
| 5812 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5813 | # as systems may use methods other than mode bits to determine executability. |
| 5814 | cat >conf$$.file <<_ASEOF |
| 5815 | #! /bin/sh |
| 5816 | exit 0 |
| 5817 | _ASEOF |
| 5818 | chmod +x conf$$.file |
| 5819 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5820 | ac_executable_p="test -x" |
| 5821 | else |
| 5822 | ac_executable_p="test -f" |
| 5823 | fi |
| 5824 | rm -f conf$$.file |
| 5825 | |
| 5826 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5827 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5829 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5830 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5831 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5832 | else |
| 5833 | case "$XGETTEXT" in |
| 5834 | [\\/]* | ?:[\\/]*) |
| 5835 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5836 | ;; |
| 5837 | *) |
| 5838 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5839 | for ac_dir in $PATH; do |
| 5840 | IFS="$ac_save_IFS" |
| 5841 | test -z "$ac_dir" && ac_dir=. |
| 5842 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5843 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5844 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5845 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5846 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5847 | break 2 |
| 5848 | fi |
| 5849 | fi |
| 5850 | done |
| 5851 | done |
| 5852 | IFS="$ac_save_IFS" |
| 5853 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5854 | ;; |
| 5855 | esac |
| 5856 | fi |
| 5857 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5858 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5860 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5861 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5863 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5864 | fi |
| 5865 | |
| 5866 | rm -f messages.po |
| 5867 | |
| 5868 | |
| 5869 | # Prepare PATH_SEPARATOR. |
| 5870 | # The user is always right. |
| 5871 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5872 | echo "#! /bin/sh" >conf$$.sh |
| 5873 | echo "exit 0" >>conf$$.sh |
| 5874 | chmod +x conf$$.sh |
| 5875 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5876 | PATH_SEPARATOR=';' |
| 5877 | else |
| 5878 | PATH_SEPARATOR=: |
| 5879 | fi |
| 5880 | rm -f conf$$.sh |
| 5881 | fi |
| 5882 | |
| 5883 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5884 | # as systems may use methods other than mode bits to determine executability. |
| 5885 | cat >conf$$.file <<_ASEOF |
| 5886 | #! /bin/sh |
| 5887 | exit 0 |
| 5888 | _ASEOF |
| 5889 | chmod +x conf$$.file |
| 5890 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5891 | ac_executable_p="test -x" |
| 5892 | else |
| 5893 | ac_executable_p="test -f" |
| 5894 | fi |
| 5895 | rm -f conf$$.file |
| 5896 | |
| 5897 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5898 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5900 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5901 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5902 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5903 | else |
| 5904 | case "$MSGMERGE" in |
| 5905 | [\\/]* | ?:[\\/]*) |
| 5906 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5907 | ;; |
| 5908 | *) |
| 5909 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5910 | for ac_dir in $PATH; do |
| 5911 | IFS="$ac_save_IFS" |
| 5912 | test -z "$ac_dir" && ac_dir=. |
| 5913 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5914 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5915 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5916 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5917 | break 2 |
| 5918 | fi |
| 5919 | fi |
| 5920 | done |
| 5921 | done |
| 5922 | IFS="$ac_save_IFS" |
| 5923 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5924 | ;; |
| 5925 | esac |
| 5926 | fi |
| 5927 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5928 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5930 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5931 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5933 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5934 | fi |
| 5935 | |
| 5936 | |
| 5937 | if test "$GMSGFMT" != ":"; then |
| 5938 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5939 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5940 | : ; |
| 5941 | else |
| 5942 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5944 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5945 | GMSGFMT=":" |
| 5946 | fi |
| 5947 | fi |
| 5948 | |
| 5949 | if test "$XGETTEXT" != ":"; then |
| 5950 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5951 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5952 | : ; |
| 5953 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5955 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5956 | XGETTEXT=":" |
| 5957 | fi |
| 5958 | rm -f messages.po |
| 5959 | fi |
| 5960 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5961 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5962 | |
| 5963 | |
| 5964 | if test -n "$ac_tool_prefix"; then |
| 5965 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5966 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5968 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5969 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5970 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5971 | else |
| 5972 | if test -n "$RANLIB"; then |
| 5973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5974 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5976 | for as_dir in $PATH |
| 5977 | do |
| 5978 | IFS=$as_save_IFS |
| 5979 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5980 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5981 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5982 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5984 | break 2 |
| 5985 | fi |
| 5986 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5987 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5988 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5989 | |
| 5990 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5991 | fi |
| 5992 | RANLIB=$ac_cv_prog_RANLIB |
| 5993 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5995 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5996 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5998 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5999 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6000 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6001 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6002 | fi |
| 6003 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6004 | ac_ct_RANLIB=$RANLIB |
| 6005 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6006 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6008 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6009 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6010 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6011 | else |
| 6012 | if test -n "$ac_ct_RANLIB"; then |
| 6013 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6014 | else |
| 6015 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6016 | for as_dir in $PATH |
| 6017 | do |
| 6018 | IFS=$as_save_IFS |
| 6019 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6020 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6021 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6022 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6023 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6024 | break 2 |
| 6025 | fi |
| 6026 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6027 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6028 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6030 | fi |
| 6031 | fi |
| 6032 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6033 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6035 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6036 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6038 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6039 | fi |
| 6040 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6041 | if test "x$ac_ct_RANLIB" = x; then |
| 6042 | RANLIB=":" |
| 6043 | else |
| 6044 | case $cross_compiling:$ac_tool_warned in |
| 6045 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6046 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6047 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6048 | ac_tool_warned=yes ;; |
| 6049 | esac |
| 6050 | RANLIB=$ac_ct_RANLIB |
| 6051 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6052 | else |
| 6053 | RANLIB="$ac_cv_prog_RANLIB" |
| 6054 | fi |
| 6055 | |
| 6056 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6058 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6059 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6060 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6061 | else |
| 6062 | ac_check_lib_save_LIBS=$LIBS |
| 6063 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6065 | /* end confdefs.h. */ |
| 6066 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6067 | /* Override any GCC internal prototype to avoid an error. |
| 6068 | Use char because int might match the return type of a GCC |
| 6069 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6070 | #ifdef __cplusplus |
| 6071 | extern "C" |
| 6072 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6073 | char strerror (); |
| 6074 | int |
| 6075 | main () |
| 6076 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6077 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6078 | ; |
| 6079 | return 0; |
| 6080 | } |
| 6081 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6082 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6083 | ac_cv_lib_cposix_strerror=yes |
| 6084 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6085 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6086 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6087 | rm -f core conftest.err conftest.$ac_objext \ |
| 6088 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6089 | LIBS=$ac_check_lib_save_LIBS |
| 6090 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6092 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6093 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6094 | LIBS="$LIBS -lcposix" |
| 6095 | fi |
| 6096 | |
| 6097 | |
| 6098 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6099 | |
| 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6101 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 6102 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 6103 | $as_echo_n "(cached) " >&6 |
| 6104 | else |
| 6105 | if test -z "$GREP"; then |
| 6106 | ac_path_GREP_found=false |
| 6107 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6109 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6110 | do |
| 6111 | IFS=$as_save_IFS |
| 6112 | test -z "$as_dir" && as_dir=. |
| 6113 | for ac_prog in grep ggrep; do |
| 6114 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6115 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6116 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 6117 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6118 | # Check for GNU $ac_path_GREP |
| 6119 | case `"$ac_path_GREP" --version 2>&1` in |
| 6120 | *GNU*) |
| 6121 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6122 | *) |
| 6123 | ac_count=0 |
| 6124 | $as_echo_n 0123456789 >"conftest.in" |
| 6125 | while : |
| 6126 | do |
| 6127 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6128 | mv "conftest.tmp" "conftest.in" |
| 6129 | cp "conftest.in" "conftest.nl" |
| 6130 | $as_echo 'GREP' >> "conftest.nl" |
| 6131 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6132 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6133 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6134 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6135 | # Best one so far, save it but keep looking for a better one |
| 6136 | ac_cv_path_GREP="$ac_path_GREP" |
| 6137 | ac_path_GREP_max=$ac_count |
| 6138 | fi |
| 6139 | # 10*(2^10) chars as input seems more than enough |
| 6140 | test $ac_count -gt 10 && break |
| 6141 | done |
| 6142 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6143 | esac |
| 6144 | |
| 6145 | $ac_path_GREP_found && break 3 |
| 6146 | done |
| 6147 | done |
| 6148 | done |
| 6149 | IFS=$as_save_IFS |
| 6150 | if test -z "$ac_cv_path_GREP"; then |
| 6151 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6152 | fi |
| 6153 | else |
| 6154 | ac_cv_path_GREP=$GREP |
| 6155 | fi |
| 6156 | |
| 6157 | fi |
| 6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6159 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6160 | GREP="$ac_cv_path_GREP" |
| 6161 | |
| 6162 | |
| 6163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6164 | $as_echo_n "checking for egrep... " >&6; } |
| 6165 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 6166 | $as_echo_n "(cached) " >&6 |
| 6167 | else |
| 6168 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6169 | then ac_cv_path_EGREP="$GREP -E" |
| 6170 | else |
| 6171 | if test -z "$EGREP"; then |
| 6172 | ac_path_EGREP_found=false |
| 6173 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6175 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6176 | do |
| 6177 | IFS=$as_save_IFS |
| 6178 | test -z "$as_dir" && as_dir=. |
| 6179 | for ac_prog in egrep; do |
| 6180 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6181 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6182 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 6183 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6184 | # Check for GNU $ac_path_EGREP |
| 6185 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6186 | *GNU*) |
| 6187 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6188 | *) |
| 6189 | ac_count=0 |
| 6190 | $as_echo_n 0123456789 >"conftest.in" |
| 6191 | while : |
| 6192 | do |
| 6193 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6194 | mv "conftest.tmp" "conftest.in" |
| 6195 | cp "conftest.in" "conftest.nl" |
| 6196 | $as_echo 'EGREP' >> "conftest.nl" |
| 6197 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6198 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6199 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6200 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6201 | # Best one so far, save it but keep looking for a better one |
| 6202 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6203 | ac_path_EGREP_max=$ac_count |
| 6204 | fi |
| 6205 | # 10*(2^10) chars as input seems more than enough |
| 6206 | test $ac_count -gt 10 && break |
| 6207 | done |
| 6208 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6209 | esac |
| 6210 | |
| 6211 | $ac_path_EGREP_found && break 3 |
| 6212 | done |
| 6213 | done |
| 6214 | done |
| 6215 | IFS=$as_save_IFS |
| 6216 | if test -z "$ac_cv_path_EGREP"; then |
| 6217 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6218 | fi |
| 6219 | else |
| 6220 | ac_cv_path_EGREP=$EGREP |
| 6221 | fi |
| 6222 | |
| 6223 | fi |
| 6224 | fi |
| 6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6226 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6227 | EGREP="$ac_cv_path_EGREP" |
| 6228 | |
| 6229 | |
| 6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6231 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6232 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 6233 | $as_echo_n "(cached) " >&6 |
| 6234 | else |
| 6235 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6236 | /* end confdefs.h. */ |
| 6237 | #include <stdlib.h> |
| 6238 | #include <stdarg.h> |
| 6239 | #include <string.h> |
| 6240 | #include <float.h> |
| 6241 | |
| 6242 | int |
| 6243 | main () |
| 6244 | { |
| 6245 | |
| 6246 | ; |
| 6247 | return 0; |
| 6248 | } |
| 6249 | _ACEOF |
| 6250 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6251 | ac_cv_header_stdc=yes |
| 6252 | else |
| 6253 | ac_cv_header_stdc=no |
| 6254 | fi |
| 6255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6256 | |
| 6257 | if test $ac_cv_header_stdc = yes; then |
| 6258 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6260 | /* end confdefs.h. */ |
| 6261 | #include <string.h> |
| 6262 | |
| 6263 | _ACEOF |
| 6264 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6265 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6266 | |
| 6267 | else |
| 6268 | ac_cv_header_stdc=no |
| 6269 | fi |
| 6270 | rm -f conftest* |
| 6271 | |
| 6272 | fi |
| 6273 | |
| 6274 | if test $ac_cv_header_stdc = yes; then |
| 6275 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6277 | /* end confdefs.h. */ |
| 6278 | #include <stdlib.h> |
| 6279 | |
| 6280 | _ACEOF |
| 6281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6282 | $EGREP "free" >/dev/null 2>&1; then : |
| 6283 | |
| 6284 | else |
| 6285 | ac_cv_header_stdc=no |
| 6286 | fi |
| 6287 | rm -f conftest* |
| 6288 | |
| 6289 | fi |
| 6290 | |
| 6291 | if test $ac_cv_header_stdc = yes; then |
| 6292 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6293 | if test "$cross_compiling" = yes; then : |
| 6294 | : |
| 6295 | else |
| 6296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6297 | /* end confdefs.h. */ |
| 6298 | #include <ctype.h> |
| 6299 | #include <stdlib.h> |
| 6300 | #if ((' ' & 0x0FF) == 0x020) |
| 6301 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6302 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6303 | #else |
| 6304 | # define ISLOWER(c) \ |
| 6305 | (('a' <= (c) && (c) <= 'i') \ |
| 6306 | || ('j' <= (c) && (c) <= 'r') \ |
| 6307 | || ('s' <= (c) && (c) <= 'z')) |
| 6308 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6309 | #endif |
| 6310 | |
| 6311 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6312 | int |
| 6313 | main () |
| 6314 | { |
| 6315 | int i; |
| 6316 | for (i = 0; i < 256; i++) |
| 6317 | if (XOR (islower (i), ISLOWER (i)) |
| 6318 | || toupper (i) != TOUPPER (i)) |
| 6319 | return 2; |
| 6320 | return 0; |
| 6321 | } |
| 6322 | _ACEOF |
| 6323 | if ac_fn_c_try_run "$LINENO"; then : |
| 6324 | |
| 6325 | else |
| 6326 | ac_cv_header_stdc=no |
| 6327 | fi |
| 6328 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6329 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6330 | fi |
| 6331 | |
| 6332 | fi |
| 6333 | fi |
| 6334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6335 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6336 | if test $ac_cv_header_stdc = yes; then |
| 6337 | |
| 6338 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6339 | |
| 6340 | fi |
| 6341 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6343 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6344 | if test "${ac_cv_c_const+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6345 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6346 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6347 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6348 | /* end confdefs.h. */ |
| 6349 | |
| 6350 | int |
| 6351 | main () |
| 6352 | { |
| 6353 | /* FIXME: Include the comments suggested by Paul. */ |
| 6354 | #ifndef __cplusplus |
| 6355 | /* Ultrix mips cc rejects this. */ |
| 6356 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6357 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6358 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6359 | char const *const *pcpcc; |
| 6360 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6361 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6362 | struct point {int x, y;}; |
| 6363 | static struct point const zero = {0,0}; |
| 6364 | /* AIX XL C 1.02.0.0 rejects this. |
| 6365 | It does not let you subtract one const X* pointer from another in |
| 6366 | an arm of an if-expression whose if-part is not a constant |
| 6367 | expression */ |
| 6368 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6369 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6370 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6371 | ++pcpcc; |
| 6372 | ppc = (char**) pcpcc; |
| 6373 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6374 | { /* SCO 3.2v4 cc rejects this. */ |
| 6375 | char *t; |
| 6376 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6377 | |
| 6378 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6379 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6380 | } |
| 6381 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6382 | int x[] = {25, 17}; |
| 6383 | const int *foo = &x[0]; |
| 6384 | ++foo; |
| 6385 | } |
| 6386 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6387 | typedef const int *iptr; |
| 6388 | iptr p = 0; |
| 6389 | ++p; |
| 6390 | } |
| 6391 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6392 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6393 | struct s { int j; const int *ap[3]; }; |
| 6394 | struct s *b; b->j = 5; |
| 6395 | } |
| 6396 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6397 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6398 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6399 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6400 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6401 | #endif |
| 6402 | |
| 6403 | ; |
| 6404 | return 0; |
| 6405 | } |
| 6406 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6407 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6408 | ac_cv_c_const=yes |
| 6409 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6410 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6411 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6413 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6415 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | if test $ac_cv_c_const = no; then |
| 6417 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6418 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6419 | |
| 6420 | fi |
| 6421 | |
| 6422 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6424 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6425 | if test "${bh_cv_c_signed+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6426 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6427 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6429 | /* end confdefs.h. */ |
| 6430 | |
| 6431 | int |
| 6432 | main () |
| 6433 | { |
| 6434 | signed char x; |
| 6435 | ; |
| 6436 | return 0; |
| 6437 | } |
| 6438 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6439 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6440 | bh_cv_c_signed=yes |
| 6441 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6442 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6443 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6445 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6447 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6448 | if test $bh_cv_c_signed = no; then |
| 6449 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6450 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | |
| 6452 | fi |
| 6453 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6455 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6456 | if test "${ac_cv_c_inline+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6457 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6458 | else |
| 6459 | ac_cv_c_inline=no |
| 6460 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6462 | /* end confdefs.h. */ |
| 6463 | #ifndef __cplusplus |
| 6464 | typedef int foo_t; |
| 6465 | static $ac_kw foo_t static_foo () {return 0; } |
| 6466 | $ac_kw foo_t foo () {return 0; } |
| 6467 | #endif |
| 6468 | |
| 6469 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6470 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6471 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6472 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6474 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6475 | done |
| 6476 | |
| 6477 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6479 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6480 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6481 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6482 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6483 | *) |
| 6484 | case $ac_cv_c_inline in |
| 6485 | no) ac_val=;; |
| 6486 | *) ac_val=$ac_cv_c_inline;; |
| 6487 | esac |
| 6488 | cat >>confdefs.h <<_ACEOF |
| 6489 | #ifndef __cplusplus |
| 6490 | #define inline $ac_val |
| 6491 | #endif |
| 6492 | _ACEOF |
| 6493 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6494 | esac |
| 6495 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6496 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6497 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6498 | inttypes.h stdint.h unistd.h |
| 6499 | do : |
| 6500 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6501 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6502 | " |
| 6503 | eval as_val=\$$as_ac_Header |
| 6504 | if test "x$as_val" = x""yes; then : |
| 6505 | cat >>confdefs.h <<_ACEOF |
| 6506 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6507 | _ACEOF |
| 6508 | |
| 6509 | fi |
| 6510 | |
| 6511 | done |
| 6512 | |
| 6513 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6514 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6515 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6516 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6517 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6518 | |
| 6519 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6520 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6521 | _ACEOF |
| 6522 | |
| 6523 | fi |
| 6524 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6525 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6526 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6528 | else |
| 6529 | |
| 6530 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6531 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6532 | _ACEOF |
| 6533 | |
| 6534 | fi |
| 6535 | |
| 6536 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6538 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6539 | if test "${ac_cv_type_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6540 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6541 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6543 | /* end confdefs.h. */ |
| 6544 | long long ll = 1LL; int i = 63; |
| 6545 | int |
| 6546 | main () |
| 6547 | { |
| 6548 | long long llmax = (long long) -1; |
| 6549 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6550 | ; |
| 6551 | return 0; |
| 6552 | } |
| 6553 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6554 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6555 | ac_cv_type_long_long=yes |
| 6556 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6557 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6558 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6559 | rm -f core conftest.err conftest.$ac_objext \ |
| 6560 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6561 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6563 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6564 | if test $ac_cv_type_long_long = yes; then |
| 6565 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6566 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6567 | |
| 6568 | fi |
| 6569 | |
| 6570 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6572 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6573 | if test "${gt_cv_c_long_double+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6574 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6575 | else |
| 6576 | if test "$GCC" = yes; then |
| 6577 | gt_cv_c_long_double=yes |
| 6578 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6580 | /* end confdefs.h. */ |
| 6581 | |
| 6582 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6583 | long double foo = 0.0; |
| 6584 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6585 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6586 | |
| 6587 | int |
| 6588 | main () |
| 6589 | { |
| 6590 | |
| 6591 | ; |
| 6592 | return 0; |
| 6593 | } |
| 6594 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6595 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6596 | gt_cv_c_long_double=yes |
| 6597 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6598 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6599 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6600 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | fi |
| 6602 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6604 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6605 | if test $gt_cv_c_long_double = yes; then |
| 6606 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6607 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6608 | |
| 6609 | fi |
| 6610 | |
| 6611 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6613 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6614 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6615 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6616 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6618 | /* end confdefs.h. */ |
| 6619 | #include <stddef.h> |
| 6620 | wchar_t foo = (wchar_t)'\0'; |
| 6621 | int |
| 6622 | main () |
| 6623 | { |
| 6624 | |
| 6625 | ; |
| 6626 | return 0; |
| 6627 | } |
| 6628 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6629 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6630 | gt_cv_c_wchar_t=yes |
| 6631 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6632 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6633 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6635 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6637 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6638 | if test $gt_cv_c_wchar_t = yes; then |
| 6639 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6640 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6641 | |
| 6642 | fi |
| 6643 | |
| 6644 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6646 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6647 | if test "${gt_cv_c_wint_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6648 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6649 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6651 | /* end confdefs.h. */ |
| 6652 | #include <wchar.h> |
| 6653 | wint_t foo = (wchar_t)'\0'; |
| 6654 | int |
| 6655 | main () |
| 6656 | { |
| 6657 | |
| 6658 | ; |
| 6659 | return 0; |
| 6660 | } |
| 6661 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6662 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6663 | gt_cv_c_wint_t=yes |
| 6664 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6665 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6668 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6670 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6671 | if test $gt_cv_c_wint_t = yes; then |
| 6672 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6673 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6674 | |
| 6675 | fi |
| 6676 | |
| 6677 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6679 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6680 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6681 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6682 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6684 | /* end confdefs.h. */ |
| 6685 | #include <sys/types.h> |
| 6686 | #include <inttypes.h> |
| 6687 | int |
| 6688 | main () |
| 6689 | { |
| 6690 | uintmax_t i = (uintmax_t) -1; |
| 6691 | ; |
| 6692 | return 0; |
| 6693 | } |
| 6694 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6695 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6696 | jm_ac_cv_header_inttypes_h=yes |
| 6697 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6698 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6699 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6701 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6703 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6704 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6705 | |
| 6706 | cat >>confdefs.h <<_ACEOF |
| 6707 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6708 | _ACEOF |
| 6709 | |
| 6710 | fi |
| 6711 | |
| 6712 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6714 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6715 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6716 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6717 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6719 | /* end confdefs.h. */ |
| 6720 | #include <sys/types.h> |
| 6721 | #include <stdint.h> |
| 6722 | int |
| 6723 | main () |
| 6724 | { |
| 6725 | uintmax_t i = (uintmax_t) -1; |
| 6726 | ; |
| 6727 | return 0; |
| 6728 | } |
| 6729 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6730 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6731 | jm_ac_cv_header_stdint_h=yes |
| 6732 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6733 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6734 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6736 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6738 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6739 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6740 | |
| 6741 | cat >>confdefs.h <<_ACEOF |
| 6742 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6743 | _ACEOF |
| 6744 | |
| 6745 | fi |
| 6746 | |
| 6747 | |
| 6748 | |
| 6749 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6751 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6752 | if test "${gt_cv_c_intmax_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6753 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6754 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6755 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6756 | /* end confdefs.h. */ |
| 6757 | |
| 6758 | #include <stddef.h> |
| 6759 | #include <stdlib.h> |
| 6760 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6761 | #include <stdint.h> |
| 6762 | #endif |
| 6763 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6764 | #include <inttypes.h> |
| 6765 | #endif |
| 6766 | |
| 6767 | int |
| 6768 | main () |
| 6769 | { |
| 6770 | intmax_t x = -1; |
| 6771 | ; |
| 6772 | return 0; |
| 6773 | } |
| 6774 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6775 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6776 | gt_cv_c_intmax_t=yes |
| 6777 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6778 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6779 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6783 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6784 | if test $gt_cv_c_intmax_t = yes; then |
| 6785 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6786 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6787 | |
| 6788 | fi |
| 6789 | |
| 6790 | |
| 6791 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6793 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6794 | if test "${gt_cv_func_printf_posix+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6795 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6796 | else |
| 6797 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6798 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6799 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6801 | /* end confdefs.h. */ |
| 6802 | |
| 6803 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6804 | notposix |
| 6805 | #endif |
| 6806 | |
| 6807 | _ACEOF |
| 6808 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6809 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6810 | gt_cv_func_printf_posix="guessing no" |
| 6811 | else |
| 6812 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6813 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6814 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6815 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6816 | |
| 6817 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6819 | /* end confdefs.h. */ |
| 6820 | |
| 6821 | #include <stdio.h> |
| 6822 | #include <string.h> |
| 6823 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6824 | dollar expansion (possibly an autoconf bug). */ |
| 6825 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6826 | static char buf[100]; |
| 6827 | int main () |
| 6828 | { |
| 6829 | sprintf (buf, format, 33, 55); |
| 6830 | return (strcmp (buf, "55 33") != 0); |
| 6831 | } |
| 6832 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6833 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6834 | gt_cv_func_printf_posix=yes |
| 6835 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6836 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6837 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6838 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6839 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6840 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6841 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6842 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6843 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6845 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6846 | case $gt_cv_func_printf_posix in |
| 6847 | *yes) |
| 6848 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6849 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6850 | |
| 6851 | ;; |
| 6852 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6853 | |
| 6854 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6855 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6857 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6858 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6859 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6860 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6862 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6863 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6864 | int |
| 6865 | main () |
| 6866 | { |
| 6867 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6868 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6869 | ; |
| 6870 | return 0; |
| 6871 | } |
| 6872 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6873 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6874 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6875 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6876 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6877 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6878 | rm -f core conftest.err conftest.$ac_objext \ |
| 6879 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6882 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6883 | if test $ac_cv_working_alloca_h = yes; then |
| 6884 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6885 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6886 | |
| 6887 | fi |
| 6888 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6890 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6891 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6892 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6893 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6894 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6895 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6896 | #ifdef __GNUC__ |
| 6897 | # define alloca __builtin_alloca |
| 6898 | #else |
| 6899 | # ifdef _MSC_VER |
| 6900 | # include <malloc.h> |
| 6901 | # define alloca _alloca |
| 6902 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6903 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6904 | # include <alloca.h> |
| 6905 | # else |
| 6906 | # ifdef _AIX |
| 6907 | #pragma alloca |
| 6908 | # else |
| 6909 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6910 | char *alloca (); |
| 6911 | # endif |
| 6912 | # endif |
| 6913 | # endif |
| 6914 | # endif |
| 6915 | #endif |
| 6916 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6917 | int |
| 6918 | main () |
| 6919 | { |
| 6920 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6921 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6922 | ; |
| 6923 | return 0; |
| 6924 | } |
| 6925 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6926 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6927 | ac_cv_func_alloca_works=yes |
| 6928 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6929 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6930 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6931 | rm -f core conftest.err conftest.$ac_objext \ |
| 6932 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6933 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6935 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6937 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6938 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6939 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6940 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6941 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6942 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6943 | # that cause trouble. Some versions do not even contain alloca or |
| 6944 | # contain a buggy version. If you still want to use their alloca, |
| 6945 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6947 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6949 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6950 | |
| 6951 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6953 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6954 | if test "${ac_cv_os_cray+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6955 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6956 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6958 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6959 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | webecray |
| 6961 | #else |
| 6962 | wenotbecray |
| 6963 | #endif |
| 6964 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6965 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6967 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6968 | ac_cv_os_cray=yes |
| 6969 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6970 | ac_cv_os_cray=no |
| 6971 | fi |
| 6972 | rm -f conftest* |
| 6973 | |
| 6974 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6976 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6977 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6978 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6979 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6980 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6981 | eval as_val=\$$as_ac_var |
| 6982 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6983 | |
| 6984 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6985 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6986 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6987 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6988 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6989 | fi |
| 6990 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6991 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6992 | fi |
| 6993 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6995 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6996 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6997 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6998 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6999 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7000 | ac_cv_c_stack_direction=0 |
| 7001 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7003 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7004 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7006 | find_stack_direction () |
| 7007 | { |
| 7008 | static char *addr = 0; |
| 7009 | auto char dummy; |
| 7010 | if (addr == 0) |
| 7011 | { |
| 7012 | addr = &dummy; |
| 7013 | return find_stack_direction (); |
| 7014 | } |
| 7015 | else |
| 7016 | return (&dummy > addr) ? 1 : -1; |
| 7017 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7018 | |
| 7019 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7020 | main () |
| 7021 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7022 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7023 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7024 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7025 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7026 | ac_cv_c_stack_direction=1 |
| 7027 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7028 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7029 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7030 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7031 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7032 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7034 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7036 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7037 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7038 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7039 | _ACEOF |
| 7040 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7041 | |
| 7042 | fi |
| 7043 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7044 | |
| 7045 | |
| 7046 | |
| 7047 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7048 | do : |
| 7049 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7050 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7051 | " |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7052 | eval as_val=\$$as_ac_Header |
| 7053 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7054 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7055 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7056 | _ACEOF |
| 7057 | |
| 7058 | fi |
| 7059 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7060 | done |
| 7061 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7062 | |
| 7063 | |
| 7064 | |
| 7065 | |
| 7066 | |
| 7067 | |
| 7068 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7069 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7070 | do : |
| 7071 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 7072 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7073 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7074 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7075 | _ACEOF |
| 7076 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7077 | fi |
| 7078 | done |
| 7079 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7081 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7082 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7083 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7084 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7085 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7086 | ac_cv_func_mmap_fixed_mapped=no |
| 7087 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7089 | /* end confdefs.h. */ |
| 7090 | $ac_includes_default |
| 7091 | /* malloc might have been renamed as rpl_malloc. */ |
| 7092 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7093 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7094 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7095 | Here is a matrix of mmap possibilities: |
| 7096 | mmap private not fixed |
| 7097 | mmap private fixed at somewhere currently unmapped |
| 7098 | mmap private fixed at somewhere already mapped |
| 7099 | mmap shared not fixed |
| 7100 | mmap shared fixed at somewhere currently unmapped |
| 7101 | mmap shared fixed at somewhere already mapped |
| 7102 | For private mappings, we should verify that changes cannot be read() |
| 7103 | back from the file, nor mmap's back from the file at a different |
| 7104 | address. (There have been systems where private was not correctly |
| 7105 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7106 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7107 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7108 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7109 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7110 | |
| 7111 | Grep wants private fixed already mapped. |
| 7112 | The main things grep needs to know about mmap are: |
| 7113 | * does it exist and is it safe to write into the mmap'd area |
| 7114 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7115 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7116 | #include <fcntl.h> |
| 7117 | #include <sys/mman.h> |
| 7118 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7119 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7120 | char *malloc (); |
| 7121 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7122 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7123 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7124 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7125 | # ifdef _SC_PAGESIZE |
| 7126 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7127 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7128 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7129 | # include <sys/param.h> |
| 7130 | # ifdef EXEC_PAGESIZE |
| 7131 | # define getpagesize() EXEC_PAGESIZE |
| 7132 | # else /* no EXEC_PAGESIZE */ |
| 7133 | # ifdef NBPG |
| 7134 | # define getpagesize() NBPG * CLSIZE |
| 7135 | # ifndef CLSIZE |
| 7136 | # define CLSIZE 1 |
| 7137 | # endif /* no CLSIZE */ |
| 7138 | # else /* no NBPG */ |
| 7139 | # ifdef NBPC |
| 7140 | # define getpagesize() NBPC |
| 7141 | # else /* no NBPC */ |
| 7142 | # ifdef PAGESIZE |
| 7143 | # define getpagesize() PAGESIZE |
| 7144 | # endif /* PAGESIZE */ |
| 7145 | # endif /* no NBPC */ |
| 7146 | # endif /* no NBPG */ |
| 7147 | # endif /* no EXEC_PAGESIZE */ |
| 7148 | # else /* no HAVE_SYS_PARAM_H */ |
| 7149 | # define getpagesize() 8192 /* punt totally */ |
| 7150 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7151 | # endif /* no _SC_PAGESIZE */ |
| 7152 | |
| 7153 | #endif /* no HAVE_GETPAGESIZE */ |
| 7154 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7155 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7156 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7157 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7158 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7159 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7160 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7161 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7162 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7163 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7164 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7165 | /* First, make a file with some known garbage in it. */ |
| 7166 | data = (char *) malloc (pagesize); |
| 7167 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7168 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7169 | for (i = 0; i < pagesize; ++i) |
| 7170 | *(data + i) = rand (); |
| 7171 | umask (0); |
| 7172 | fd = creat ("conftest.mmap", 0600); |
| 7173 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7174 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7175 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7176 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7177 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7178 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7179 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7180 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7181 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7182 | if (fd2 < 0) |
| 7183 | return 4; |
| 7184 | cdata2 = ""; |
| 7185 | if (write (fd2, cdata2, 1) != 1) |
| 7186 | return 5; |
| 7187 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7188 | if (data2 == MAP_FAILED) |
| 7189 | return 6; |
| 7190 | for (i = 0; i < pagesize; ++i) |
| 7191 | if (*(data2 + i)) |
| 7192 | return 7; |
| 7193 | close (fd2); |
| 7194 | if (munmap (data2, pagesize)) |
| 7195 | return 8; |
| 7196 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7197 | /* Next, try to mmap the file at a fixed address which already has |
| 7198 | something else allocated at it. If we can, also make sure that |
| 7199 | we see the same garbage. */ |
| 7200 | fd = open ("conftest.mmap", O_RDWR); |
| 7201 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7202 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7203 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7204 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7205 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7206 | for (i = 0; i < pagesize; ++i) |
| 7207 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7208 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7209 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7210 | /* Finally, make sure that changes to the mapped area do not |
| 7211 | percolate back to the file as seen by read(). (This is a bug on |
| 7212 | some variants of i386 svr4.0.) */ |
| 7213 | for (i = 0; i < pagesize; ++i) |
| 7214 | *(data2 + i) = *(data2 + i) + 1; |
| 7215 | data3 = (char *) malloc (pagesize); |
| 7216 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7217 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7218 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7219 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7220 | for (i = 0; i < pagesize; ++i) |
| 7221 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7222 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7223 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7224 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7225 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7226 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7227 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7228 | ac_cv_func_mmap_fixed_mapped=yes |
| 7229 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7230 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7231 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7232 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7233 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7234 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7235 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7236 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7238 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7239 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7241 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7242 | |
| 7243 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7244 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7245 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7246 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7248 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7249 | if test "${ac_cv_gnu_library_2_1+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7250 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7251 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7253 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7254 | |
| 7255 | #include <features.h> |
| 7256 | #ifdef __GNU_LIBRARY__ |
| 7257 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7258 | Lucky GNU user |
| 7259 | #endif |
| 7260 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7261 | |
| 7262 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7263 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7264 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7265 | ac_cv_gnu_library_2_1=yes |
| 7266 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7267 | ac_cv_gnu_library_2_1=no |
| 7268 | fi |
| 7269 | rm -f conftest* |
| 7270 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7271 | |
| 7272 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7273 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7275 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7276 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7277 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7278 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7279 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7280 | |
| 7281 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7283 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7284 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7285 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7287 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7288 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7289 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7290 | # Guess based on the CPU. |
| 7291 | case "$host_cpu" in |
| 7292 | alpha* | i3456786 | m68k | s390*) |
| 7293 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7294 | *) |
| 7295 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7296 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7297 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7298 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7299 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7300 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7301 | |
| 7302 | #include <stdlib.h> |
| 7303 | #include <signal.h> |
| 7304 | |
| 7305 | static void |
| 7306 | #ifdef __cplusplus |
| 7307 | sigfpe_handler (int sig) |
| 7308 | #else |
| 7309 | sigfpe_handler (sig) int sig; |
| 7310 | #endif |
| 7311 | { |
| 7312 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7313 | exit (sig != SIGFPE); |
| 7314 | } |
| 7315 | |
| 7316 | int x = 1; |
| 7317 | int y = 0; |
| 7318 | int z; |
| 7319 | int nan; |
| 7320 | |
| 7321 | int main () |
| 7322 | { |
| 7323 | signal (SIGFPE, sigfpe_handler); |
| 7324 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7325 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7326 | signal (SIGTRAP, sigfpe_handler); |
| 7327 | #endif |
| 7328 | /* Linux/SPARC yields signal SIGILL. */ |
| 7329 | #if defined (__sparc__) && defined (__linux__) |
| 7330 | signal (SIGILL, sigfpe_handler); |
| 7331 | #endif |
| 7332 | |
| 7333 | z = x / y; |
| 7334 | nan = y / y; |
| 7335 | exit (1); |
| 7336 | } |
| 7337 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7338 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7339 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7340 | gt_cv_int_divbyzero_sigfpe=yes |
| 7341 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7342 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7343 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7344 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7345 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7346 | fi |
| 7347 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7348 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7349 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7351 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7352 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7353 | *yes) value=1;; |
| 7354 | *) value=0;; |
| 7355 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7356 | |
| 7357 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7358 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7359 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7360 | |
| 7361 | |
| 7362 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7364 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7365 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7366 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7367 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7369 | /* end confdefs.h. */ |
| 7370 | unsigned long long ull = 1ULL; int i = 63; |
| 7371 | int |
| 7372 | main () |
| 7373 | { |
| 7374 | unsigned long long ullmax = (unsigned long long) -1; |
| 7375 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7376 | ; |
| 7377 | return 0; |
| 7378 | } |
| 7379 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7380 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7381 | ac_cv_type_unsigned_long_long=yes |
| 7382 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7383 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7384 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7385 | rm -f core conftest.err conftest.$ac_objext \ |
| 7386 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7387 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7389 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7390 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7391 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7392 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7393 | |
| 7394 | fi |
| 7395 | |
| 7396 | |
| 7397 | |
| 7398 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7399 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7400 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7401 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7402 | && ac_type='unsigned long long' \ |
| 7403 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7404 | |
| 7405 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7406 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7407 | _ACEOF |
| 7408 | |
| 7409 | else |
| 7410 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7411 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7412 | |
| 7413 | fi |
| 7414 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7415 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7417 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7418 | if test "${gt_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7419 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7420 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7421 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7423 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7424 | #include <sys/types.h> |
| 7425 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7426 | int |
| 7427 | main () |
| 7428 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7429 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7430 | ; |
| 7431 | return 0; |
| 7432 | } |
| 7433 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7434 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7435 | gt_cv_header_inttypes_h=yes |
| 7436 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7437 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7438 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7440 | |
| 7441 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7443 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7444 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7445 | |
| 7446 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7447 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7448 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7449 | |
| 7450 | fi |
| 7451 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7453 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7454 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7456 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7457 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7458 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7459 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7460 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7463 | #include <inttypes.h> |
| 7464 | #ifdef PRId32 |
| 7465 | char *p = PRId32; |
| 7466 | #endif |
| 7467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7468 | int |
| 7469 | main () |
| 7470 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7471 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7472 | ; |
| 7473 | return 0; |
| 7474 | } |
| 7475 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7476 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7477 | gt_cv_inttypes_pri_broken=no |
| 7478 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7479 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7480 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7482 | |
| 7483 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7485 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7486 | fi |
| 7487 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7488 | |
| 7489 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7490 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7491 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7492 | |
| 7493 | fi |
| 7494 | |
| 7495 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7496 | for ac_header in stdint.h |
| 7497 | do : |
| 7498 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7499 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7500 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7501 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7502 | _ACEOF |
| 7503 | |
| 7504 | fi |
| 7505 | |
| 7506 | done |
| 7507 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7509 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7510 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7512 | /* end confdefs.h. */ |
| 7513 | |
| 7514 | #include <limits.h> |
| 7515 | #if HAVE_STDINT_H |
| 7516 | #include <stdint.h> |
| 7517 | #endif |
| 7518 | #ifdef SIZE_MAX |
| 7519 | Found it |
| 7520 | #endif |
| 7521 | |
| 7522 | _ACEOF |
| 7523 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7524 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7525 | result=yes |
| 7526 | fi |
| 7527 | rm -f conftest* |
| 7528 | |
| 7529 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7530 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7531 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7532 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7533 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7534 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7535 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7536 | |
| 7537 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7538 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7539 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7540 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7541 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7542 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7543 | |
| 7544 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7545 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7546 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7547 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7548 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7549 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7551 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7553 | /* end confdefs.h. */ |
| 7554 | #include <stddef.h> |
| 7555 | extern size_t foo; |
| 7556 | extern unsigned long foo; |
| 7557 | |
| 7558 | int |
| 7559 | main () |
| 7560 | { |
| 7561 | |
| 7562 | ; |
| 7563 | return 0; |
| 7564 | } |
| 7565 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7566 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7567 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7570 | fi |
| 7571 | if test -z "$result"; then |
| 7572 | if test "$fits_in_uint" = 1; then |
| 7573 | result="$res_hi$res_lo"U |
| 7574 | else |
| 7575 | result="$res_hi$res_lo"UL |
| 7576 | fi |
| 7577 | else |
| 7578 | result='~(size_t)0' |
| 7579 | fi |
| 7580 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7582 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7583 | if test "$result" != yes; then |
| 7584 | |
| 7585 | cat >>confdefs.h <<_ACEOF |
| 7586 | #define SIZE_MAX $result |
| 7587 | _ACEOF |
| 7588 | |
| 7589 | fi |
| 7590 | |
| 7591 | |
| 7592 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7593 | for ac_header in stdint.h |
| 7594 | do : |
| 7595 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7596 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7597 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7598 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7599 | _ACEOF |
| 7600 | |
| 7601 | fi |
| 7602 | |
| 7603 | done |
| 7604 | |
| 7605 | |
| 7606 | |
| 7607 | if test "X$prefix" = "XNONE"; then |
| 7608 | acl_final_prefix="$ac_default_prefix" |
| 7609 | else |
| 7610 | acl_final_prefix="$prefix" |
| 7611 | fi |
| 7612 | if test "X$exec_prefix" = "XNONE"; then |
| 7613 | acl_final_exec_prefix='${prefix}' |
| 7614 | else |
| 7615 | acl_final_exec_prefix="$exec_prefix" |
| 7616 | fi |
| 7617 | acl_save_prefix="$prefix" |
| 7618 | prefix="$acl_final_prefix" |
| 7619 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7620 | prefix="$acl_save_prefix" |
| 7621 | |
| 7622 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7623 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7624 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7625 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7626 | else |
| 7627 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7628 | fi |
| 7629 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7630 | # Prepare PATH_SEPARATOR. |
| 7631 | # The user is always right. |
| 7632 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7633 | echo "#! /bin/sh" >conf$$.sh |
| 7634 | echo "exit 0" >>conf$$.sh |
| 7635 | chmod +x conf$$.sh |
| 7636 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7637 | PATH_SEPARATOR=';' |
| 7638 | else |
| 7639 | PATH_SEPARATOR=: |
| 7640 | fi |
| 7641 | rm -f conf$$.sh |
| 7642 | fi |
| 7643 | ac_prog=ld |
| 7644 | if test "$GCC" = yes; then |
| 7645 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7647 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7648 | case $host in |
| 7649 | *-*-mingw*) |
| 7650 | # gcc leaves a trailing carriage return which upsets mingw |
| 7651 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7652 | *) |
| 7653 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7654 | esac |
| 7655 | case $ac_prog in |
| 7656 | # Accept absolute paths. |
| 7657 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7658 | re_direlt='/[^/][^/]*/\.\./' |
| 7659 | # Canonicalize the path of ld |
| 7660 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7661 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7662 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7663 | done |
| 7664 | test -z "$LD" && LD="$ac_prog" |
| 7665 | ;; |
| 7666 | "") |
| 7667 | # If it fails, then pretend we aren't using GCC. |
| 7668 | ac_prog=ld |
| 7669 | ;; |
| 7670 | *) |
| 7671 | # If it is relative, then search for the first ld in PATH. |
| 7672 | with_gnu_ld=unknown |
| 7673 | ;; |
| 7674 | esac |
| 7675 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7677 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7678 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7680 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7681 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7682 | if test "${acl_cv_path_LD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7683 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7684 | else |
| 7685 | if test -z "$LD"; then |
| 7686 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7687 | for ac_dir in $PATH; do |
| 7688 | test -z "$ac_dir" && ac_dir=. |
| 7689 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7690 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7691 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7692 | # but apparently some GNU ld's only accept -v. |
| 7693 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7694 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7695 | *GNU* | *'with BFD'*) |
| 7696 | test "$with_gnu_ld" != no && break ;; |
| 7697 | *) |
| 7698 | test "$with_gnu_ld" != yes && break ;; |
| 7699 | esac |
| 7700 | fi |
| 7701 | done |
| 7702 | IFS="$ac_save_ifs" |
| 7703 | else |
| 7704 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7705 | fi |
| 7706 | fi |
| 7707 | |
| 7708 | LD="$acl_cv_path_LD" |
| 7709 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7711 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7712 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7714 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7715 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7716 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7718 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7719 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7720 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7721 | else |
| 7722 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7723 | case `$LD -v 2>&1 </dev/null` in |
| 7724 | *GNU* | *'with BFD'*) |
| 7725 | acl_cv_prog_gnu_ld=yes ;; |
| 7726 | *) |
| 7727 | acl_cv_prog_gnu_ld=no ;; |
| 7728 | esac |
| 7729 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7731 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7732 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7733 | |
| 7734 | |
| 7735 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7737 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7738 | if test "${acl_cv_rpath+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7739 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7740 | else |
| 7741 | |
| 7742 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7743 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7744 | . ./conftest.sh |
| 7745 | rm -f ./conftest.sh |
| 7746 | acl_cv_rpath=done |
| 7747 | |
| 7748 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7750 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7751 | wl="$acl_cv_wl" |
| 7752 | libext="$acl_cv_libext" |
| 7753 | shlibext="$acl_cv_shlibext" |
| 7754 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7755 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7756 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7757 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7758 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7759 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7760 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7761 | else |
| 7762 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7763 | fi |
| 7764 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7765 | |
| 7766 | |
| 7767 | |
| 7768 | |
| 7769 | |
| 7770 | |
| 7771 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7772 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7773 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7774 | acl_save_prefix="$prefix" |
| 7775 | prefix="$acl_final_prefix" |
| 7776 | acl_save_exec_prefix="$exec_prefix" |
| 7777 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7778 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7779 | eval additional_includedir=\"$includedir\" |
| 7780 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7781 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7782 | exec_prefix="$acl_save_exec_prefix" |
| 7783 | prefix="$acl_save_prefix" |
| 7784 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7785 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7786 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7787 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7788 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7789 | if test "X$withval" = "Xno"; then |
| 7790 | use_additional=no |
| 7791 | else |
| 7792 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7793 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7794 | acl_save_prefix="$prefix" |
| 7795 | prefix="$acl_final_prefix" |
| 7796 | acl_save_exec_prefix="$exec_prefix" |
| 7797 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7798 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7799 | eval additional_includedir=\"$includedir\" |
| 7800 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7801 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7802 | exec_prefix="$acl_save_exec_prefix" |
| 7803 | prefix="$acl_save_prefix" |
| 7804 | |
| 7805 | else |
| 7806 | additional_includedir="$withval/include" |
| 7807 | additional_libdir="$withval/lib" |
| 7808 | fi |
| 7809 | fi |
| 7810 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7811 | fi |
| 7812 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7813 | LIBICONV= |
| 7814 | LTLIBICONV= |
| 7815 | INCICONV= |
| 7816 | rpathdirs= |
| 7817 | ltrpathdirs= |
| 7818 | names_already_handled= |
| 7819 | names_next_round='iconv ' |
| 7820 | while test -n "$names_next_round"; do |
| 7821 | names_this_round="$names_next_round" |
| 7822 | names_next_round= |
| 7823 | for name in $names_this_round; do |
| 7824 | already_handled= |
| 7825 | for n in $names_already_handled; do |
| 7826 | if test "$n" = "$name"; then |
| 7827 | already_handled=yes |
| 7828 | break |
| 7829 | fi |
| 7830 | done |
| 7831 | if test -z "$already_handled"; then |
| 7832 | names_already_handled="$names_already_handled $name" |
| 7833 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7834 | eval value=\"\$HAVE_LIB$uppername\" |
| 7835 | if test -n "$value"; then |
| 7836 | if test "$value" = yes; then |
| 7837 | eval value=\"\$LIB$uppername\" |
| 7838 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7839 | eval value=\"\$LTLIB$uppername\" |
| 7840 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7841 | else |
| 7842 | : |
| 7843 | fi |
| 7844 | else |
| 7845 | found_dir= |
| 7846 | found_la= |
| 7847 | found_so= |
| 7848 | found_a= |
| 7849 | if test $use_additional = yes; then |
| 7850 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7851 | found_dir="$additional_libdir" |
| 7852 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7853 | if test -f "$additional_libdir/lib$name.la"; then |
| 7854 | found_la="$additional_libdir/lib$name.la" |
| 7855 | fi |
| 7856 | else |
| 7857 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7858 | found_dir="$additional_libdir" |
| 7859 | found_a="$additional_libdir/lib$name.$libext" |
| 7860 | if test -f "$additional_libdir/lib$name.la"; then |
| 7861 | found_la="$additional_libdir/lib$name.la" |
| 7862 | fi |
| 7863 | fi |
| 7864 | fi |
| 7865 | fi |
| 7866 | if test "X$found_dir" = "X"; then |
| 7867 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7868 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7869 | acl_save_prefix="$prefix" |
| 7870 | prefix="$acl_final_prefix" |
| 7871 | acl_save_exec_prefix="$exec_prefix" |
| 7872 | exec_prefix="$acl_final_exec_prefix" |
| 7873 | eval x=\"$x\" |
| 7874 | exec_prefix="$acl_save_exec_prefix" |
| 7875 | prefix="$acl_save_prefix" |
| 7876 | |
| 7877 | case "$x" in |
| 7878 | -L*) |
| 7879 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7880 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7881 | found_dir="$dir" |
| 7882 | found_so="$dir/lib$name.$shlibext" |
| 7883 | if test -f "$dir/lib$name.la"; then |
| 7884 | found_la="$dir/lib$name.la" |
| 7885 | fi |
| 7886 | else |
| 7887 | if test -f "$dir/lib$name.$libext"; then |
| 7888 | found_dir="$dir" |
| 7889 | found_a="$dir/lib$name.$libext" |
| 7890 | if test -f "$dir/lib$name.la"; then |
| 7891 | found_la="$dir/lib$name.la" |
| 7892 | fi |
| 7893 | fi |
| 7894 | fi |
| 7895 | ;; |
| 7896 | esac |
| 7897 | if test "X$found_dir" != "X"; then |
| 7898 | break |
| 7899 | fi |
| 7900 | done |
| 7901 | fi |
| 7902 | if test "X$found_dir" != "X"; then |
| 7903 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7904 | if test "X$found_so" != "X"; then |
| 7905 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7906 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7907 | else |
| 7908 | haveit= |
| 7909 | for x in $ltrpathdirs; do |
| 7910 | if test "X$x" = "X$found_dir"; then |
| 7911 | haveit=yes |
| 7912 | break |
| 7913 | fi |
| 7914 | done |
| 7915 | if test -z "$haveit"; then |
| 7916 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7917 | fi |
| 7918 | if test "$hardcode_direct" = yes; then |
| 7919 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7920 | else |
| 7921 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7922 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7923 | haveit= |
| 7924 | for x in $rpathdirs; do |
| 7925 | if test "X$x" = "X$found_dir"; then |
| 7926 | haveit=yes |
| 7927 | break |
| 7928 | fi |
| 7929 | done |
| 7930 | if test -z "$haveit"; then |
| 7931 | rpathdirs="$rpathdirs $found_dir" |
| 7932 | fi |
| 7933 | else |
| 7934 | haveit= |
| 7935 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7936 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7937 | acl_save_prefix="$prefix" |
| 7938 | prefix="$acl_final_prefix" |
| 7939 | acl_save_exec_prefix="$exec_prefix" |
| 7940 | exec_prefix="$acl_final_exec_prefix" |
| 7941 | eval x=\"$x\" |
| 7942 | exec_prefix="$acl_save_exec_prefix" |
| 7943 | prefix="$acl_save_prefix" |
| 7944 | |
| 7945 | if test "X$x" = "X-L$found_dir"; then |
| 7946 | haveit=yes |
| 7947 | break |
| 7948 | fi |
| 7949 | done |
| 7950 | if test -z "$haveit"; then |
| 7951 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7952 | fi |
| 7953 | if test "$hardcode_minus_L" != no; then |
| 7954 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7955 | else |
| 7956 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7957 | fi |
| 7958 | fi |
| 7959 | fi |
| 7960 | fi |
| 7961 | else |
| 7962 | if test "X$found_a" != "X"; then |
| 7963 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7964 | else |
| 7965 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 7966 | fi |
| 7967 | fi |
| 7968 | additional_includedir= |
| 7969 | case "$found_dir" in |
| 7970 | */lib | */lib/) |
| 7971 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 7972 | additional_includedir="$basedir/include" |
| 7973 | ;; |
| 7974 | esac |
| 7975 | if test "X$additional_includedir" != "X"; then |
| 7976 | if test "X$additional_includedir" != "X/usr/include"; then |
| 7977 | haveit= |
| 7978 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 7979 | if test -n "$GCC"; then |
| 7980 | case $host_os in |
| 7981 | linux*) haveit=yes;; |
| 7982 | esac |
| 7983 | fi |
| 7984 | fi |
| 7985 | if test -z "$haveit"; then |
| 7986 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7987 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7988 | acl_save_prefix="$prefix" |
| 7989 | prefix="$acl_final_prefix" |
| 7990 | acl_save_exec_prefix="$exec_prefix" |
| 7991 | exec_prefix="$acl_final_exec_prefix" |
| 7992 | eval x=\"$x\" |
| 7993 | exec_prefix="$acl_save_exec_prefix" |
| 7994 | prefix="$acl_save_prefix" |
| 7995 | |
| 7996 | if test "X$x" = "X-I$additional_includedir"; then |
| 7997 | haveit=yes |
| 7998 | break |
| 7999 | fi |
| 8000 | done |
| 8001 | if test -z "$haveit"; then |
| 8002 | if test -d "$additional_includedir"; then |
| 8003 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8004 | fi |
| 8005 | fi |
| 8006 | fi |
| 8007 | fi |
| 8008 | fi |
| 8009 | if test -n "$found_la"; then |
| 8010 | save_libdir="$libdir" |
| 8011 | case "$found_la" in |
| 8012 | */* | *\\*) . "$found_la" ;; |
| 8013 | *) . "./$found_la" ;; |
| 8014 | esac |
| 8015 | libdir="$save_libdir" |
| 8016 | for dep in $dependency_libs; do |
| 8017 | case "$dep" in |
| 8018 | -L*) |
| 8019 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8020 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8021 | haveit= |
| 8022 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8023 | if test -n "$GCC"; then |
| 8024 | case $host_os in |
| 8025 | linux*) haveit=yes;; |
| 8026 | esac |
| 8027 | fi |
| 8028 | fi |
| 8029 | if test -z "$haveit"; then |
| 8030 | haveit= |
| 8031 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8032 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8033 | acl_save_prefix="$prefix" |
| 8034 | prefix="$acl_final_prefix" |
| 8035 | acl_save_exec_prefix="$exec_prefix" |
| 8036 | exec_prefix="$acl_final_exec_prefix" |
| 8037 | eval x=\"$x\" |
| 8038 | exec_prefix="$acl_save_exec_prefix" |
| 8039 | prefix="$acl_save_prefix" |
| 8040 | |
| 8041 | if test "X$x" = "X-L$additional_libdir"; then |
| 8042 | haveit=yes |
| 8043 | break |
| 8044 | fi |
| 8045 | done |
| 8046 | if test -z "$haveit"; then |
| 8047 | if test -d "$additional_libdir"; then |
| 8048 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8049 | fi |
| 8050 | fi |
| 8051 | haveit= |
| 8052 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8053 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8054 | acl_save_prefix="$prefix" |
| 8055 | prefix="$acl_final_prefix" |
| 8056 | acl_save_exec_prefix="$exec_prefix" |
| 8057 | exec_prefix="$acl_final_exec_prefix" |
| 8058 | eval x=\"$x\" |
| 8059 | exec_prefix="$acl_save_exec_prefix" |
| 8060 | prefix="$acl_save_prefix" |
| 8061 | |
| 8062 | if test "X$x" = "X-L$additional_libdir"; then |
| 8063 | haveit=yes |
| 8064 | break |
| 8065 | fi |
| 8066 | done |
| 8067 | if test -z "$haveit"; then |
| 8068 | if test -d "$additional_libdir"; then |
| 8069 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8070 | fi |
| 8071 | fi |
| 8072 | fi |
| 8073 | fi |
| 8074 | ;; |
| 8075 | -R*) |
| 8076 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8077 | if test "$enable_rpath" != no; then |
| 8078 | haveit= |
| 8079 | for x in $rpathdirs; do |
| 8080 | if test "X$x" = "X$dir"; then |
| 8081 | haveit=yes |
| 8082 | break |
| 8083 | fi |
| 8084 | done |
| 8085 | if test -z "$haveit"; then |
| 8086 | rpathdirs="$rpathdirs $dir" |
| 8087 | fi |
| 8088 | haveit= |
| 8089 | for x in $ltrpathdirs; do |
| 8090 | if test "X$x" = "X$dir"; then |
| 8091 | haveit=yes |
| 8092 | break |
| 8093 | fi |
| 8094 | done |
| 8095 | if test -z "$haveit"; then |
| 8096 | ltrpathdirs="$ltrpathdirs $dir" |
| 8097 | fi |
| 8098 | fi |
| 8099 | ;; |
| 8100 | -l*) |
| 8101 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8102 | ;; |
| 8103 | *.la) |
| 8104 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8105 | ;; |
| 8106 | *) |
| 8107 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8108 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8109 | ;; |
| 8110 | esac |
| 8111 | done |
| 8112 | fi |
| 8113 | else |
| 8114 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8115 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8116 | fi |
| 8117 | fi |
| 8118 | fi |
| 8119 | done |
| 8120 | done |
| 8121 | if test "X$rpathdirs" != "X"; then |
| 8122 | if test -n "$hardcode_libdir_separator"; then |
| 8123 | alldirs= |
| 8124 | for found_dir in $rpathdirs; do |
| 8125 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8126 | done |
| 8127 | acl_save_libdir="$libdir" |
| 8128 | libdir="$alldirs" |
| 8129 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8130 | libdir="$acl_save_libdir" |
| 8131 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8132 | else |
| 8133 | for found_dir in $rpathdirs; do |
| 8134 | acl_save_libdir="$libdir" |
| 8135 | libdir="$found_dir" |
| 8136 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8137 | libdir="$acl_save_libdir" |
| 8138 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8139 | done |
| 8140 | fi |
| 8141 | fi |
| 8142 | if test "X$ltrpathdirs" != "X"; then |
| 8143 | for found_dir in $ltrpathdirs; do |
| 8144 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8145 | done |
| 8146 | fi |
| 8147 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8148 | |
| 8149 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8150 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8151 | |
| 8152 | |
| 8153 | |
| 8154 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8155 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 8156 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8157 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8158 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8159 | |
| 8160 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8161 | |
| 8162 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8164 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8165 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8166 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8167 | do : |
| 8168 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8169 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8170 | eval as_val=\$$as_ac_Header |
| 8171 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8172 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8173 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8174 | _ACEOF |
| 8175 | |
| 8176 | fi |
| 8177 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8178 | done |
| 8179 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8180 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8181 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8182 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8183 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8184 | do : |
| 8185 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8186 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8187 | eval as_val=\$$as_ac_var |
| 8188 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8189 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8190 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8191 | _ACEOF |
| 8192 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8193 | fi |
| 8194 | done |
| 8195 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8196 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8197 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8199 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8200 | if test "${ac_cv_have_decl__snprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8201 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8202 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8204 | /* end confdefs.h. */ |
| 8205 | #include <stdio.h> |
| 8206 | int |
| 8207 | main () |
| 8208 | { |
| 8209 | |
| 8210 | #ifndef _snprintf |
| 8211 | char *p = (char *) _snprintf; |
| 8212 | #endif |
| 8213 | |
| 8214 | ; |
| 8215 | return 0; |
| 8216 | } |
| 8217 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8218 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8219 | ac_cv_have_decl__snprintf=yes |
| 8220 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8221 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8222 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8224 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8226 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8227 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8228 | gt_value=1 |
| 8229 | else |
| 8230 | gt_value=0 |
| 8231 | fi |
| 8232 | |
| 8233 | cat >>confdefs.h <<_ACEOF |
| 8234 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8235 | _ACEOF |
| 8236 | |
| 8237 | |
| 8238 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8240 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8241 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8242 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8243 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8245 | /* end confdefs.h. */ |
| 8246 | #include <stdio.h> |
| 8247 | int |
| 8248 | main () |
| 8249 | { |
| 8250 | |
| 8251 | #ifndef _snwprintf |
| 8252 | char *p = (char *) _snwprintf; |
| 8253 | #endif |
| 8254 | |
| 8255 | ; |
| 8256 | return 0; |
| 8257 | } |
| 8258 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8259 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8260 | ac_cv_have_decl__snwprintf=yes |
| 8261 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8262 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8263 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8265 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8267 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8268 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8269 | gt_value=1 |
| 8270 | else |
| 8271 | gt_value=0 |
| 8272 | fi |
| 8273 | |
| 8274 | cat >>confdefs.h <<_ACEOF |
| 8275 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8276 | _ACEOF |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8282 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8283 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8284 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8285 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8287 | /* end confdefs.h. */ |
| 8288 | #include <stdio.h> |
| 8289 | int |
| 8290 | main () |
| 8291 | { |
| 8292 | |
| 8293 | #ifndef feof_unlocked |
| 8294 | char *p = (char *) feof_unlocked; |
| 8295 | #endif |
| 8296 | |
| 8297 | ; |
| 8298 | return 0; |
| 8299 | } |
| 8300 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8301 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8302 | ac_cv_have_decl_feof_unlocked=yes |
| 8303 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8304 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8305 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8307 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8309 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8310 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8311 | gt_value=1 |
| 8312 | else |
| 8313 | gt_value=0 |
| 8314 | fi |
| 8315 | |
| 8316 | cat >>confdefs.h <<_ACEOF |
| 8317 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8318 | _ACEOF |
| 8319 | |
| 8320 | |
| 8321 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8323 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8324 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8325 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8326 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8328 | /* end confdefs.h. */ |
| 8329 | #include <stdio.h> |
| 8330 | int |
| 8331 | main () |
| 8332 | { |
| 8333 | |
| 8334 | #ifndef fgets_unlocked |
| 8335 | char *p = (char *) fgets_unlocked; |
| 8336 | #endif |
| 8337 | |
| 8338 | ; |
| 8339 | return 0; |
| 8340 | } |
| 8341 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8342 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8343 | ac_cv_have_decl_fgets_unlocked=yes |
| 8344 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8345 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8348 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8350 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8351 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8352 | gt_value=1 |
| 8353 | else |
| 8354 | gt_value=0 |
| 8355 | fi |
| 8356 | |
| 8357 | cat >>confdefs.h <<_ACEOF |
| 8358 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8359 | _ACEOF |
| 8360 | |
| 8361 | |
| 8362 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8364 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8365 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8366 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8367 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8369 | /* end confdefs.h. */ |
| 8370 | #include <stdio.h> |
| 8371 | int |
| 8372 | main () |
| 8373 | { |
| 8374 | |
| 8375 | #ifndef getc_unlocked |
| 8376 | char *p = (char *) getc_unlocked; |
| 8377 | #endif |
| 8378 | |
| 8379 | ; |
| 8380 | return 0; |
| 8381 | } |
| 8382 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8383 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8384 | ac_cv_have_decl_getc_unlocked=yes |
| 8385 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8386 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8387 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8388 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8389 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8391 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8392 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8393 | gt_value=1 |
| 8394 | else |
| 8395 | gt_value=0 |
| 8396 | fi |
| 8397 | |
| 8398 | cat >>confdefs.h <<_ACEOF |
| 8399 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8400 | _ACEOF |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | case $gt_cv_func_printf_posix in |
| 8405 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8406 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8407 | esac |
| 8408 | |
| 8409 | if test "$ac_cv_func_asprintf" = yes; then |
| 8410 | HAVE_ASPRINTF=1 |
| 8411 | else |
| 8412 | HAVE_ASPRINTF=0 |
| 8413 | fi |
| 8414 | |
| 8415 | if test "$ac_cv_func_snprintf" = yes; then |
| 8416 | HAVE_SNPRINTF=1 |
| 8417 | else |
| 8418 | HAVE_SNPRINTF=0 |
| 8419 | fi |
| 8420 | |
| 8421 | if test "$ac_cv_func_wprintf" = yes; then |
| 8422 | HAVE_WPRINTF=1 |
| 8423 | else |
| 8424 | HAVE_WPRINTF=0 |
| 8425 | fi |
| 8426 | |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8432 | |
| 8433 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8434 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8435 | for element in $INCICONV; do |
| 8436 | haveit= |
| 8437 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8438 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8439 | acl_save_prefix="$prefix" |
| 8440 | prefix="$acl_final_prefix" |
| 8441 | acl_save_exec_prefix="$exec_prefix" |
| 8442 | exec_prefix="$acl_final_exec_prefix" |
| 8443 | eval x=\"$x\" |
| 8444 | exec_prefix="$acl_save_exec_prefix" |
| 8445 | prefix="$acl_save_prefix" |
| 8446 | |
| 8447 | if test "X$x" = "X$element"; then |
| 8448 | haveit=yes |
| 8449 | break |
| 8450 | fi |
| 8451 | done |
| 8452 | if test -z "$haveit"; then |
| 8453 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8454 | fi |
| 8455 | done |
| 8456 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8457 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8459 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8460 | if test "${am_cv_func_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8461 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8462 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8463 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8464 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8465 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8467 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8468 | #include <stdlib.h> |
| 8469 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8470 | int |
| 8471 | main () |
| 8472 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8473 | iconv_t cd = iconv_open("",""); |
| 8474 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8475 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8476 | ; |
| 8477 | return 0; |
| 8478 | } |
| 8479 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8480 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8481 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8482 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8483 | rm -f core conftest.err conftest.$ac_objext \ |
| 8484 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8485 | if test "$am_cv_func_iconv" != yes; then |
| 8486 | am_save_LIBS="$LIBS" |
| 8487 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8489 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8490 | #include <stdlib.h> |
| 8491 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8492 | int |
| 8493 | main () |
| 8494 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8495 | iconv_t cd = iconv_open("",""); |
| 8496 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8497 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8498 | ; |
| 8499 | return 0; |
| 8500 | } |
| 8501 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8502 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8503 | am_cv_lib_iconv=yes |
| 8504 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8505 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8506 | rm -f core conftest.err conftest.$ac_objext \ |
| 8507 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8508 | LIBS="$am_save_LIBS" |
| 8509 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8511 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8513 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8514 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8515 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8516 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8517 | |
| 8518 | fi |
| 8519 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8521 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8523 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8524 | else |
| 8525 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8526 | LIBICONV= |
| 8527 | LTLIBICONV= |
| 8528 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8529 | |
| 8530 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8531 | |
| 8532 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8534 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8535 | if test "${am_cv_proto_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8536 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8537 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8538 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8540 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8541 | |
| 8542 | #include <stdlib.h> |
| 8543 | #include <iconv.h> |
| 8544 | extern |
| 8545 | #ifdef __cplusplus |
| 8546 | "C" |
| 8547 | #endif |
| 8548 | #if defined(__STDC__) || defined(__cplusplus) |
| 8549 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8550 | #else |
| 8551 | size_t iconv(); |
| 8552 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8553 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8554 | int |
| 8555 | main () |
| 8556 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8557 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8558 | ; |
| 8559 | return 0; |
| 8560 | } |
| 8561 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8562 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8563 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8564 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8565 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8566 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8568 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8569 | fi |
| 8570 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8571 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8573 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8574 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8575 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8576 | |
| 8577 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8578 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8579 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8580 | |
| 8581 | fi |
| 8582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8583 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8585 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8586 | if test "${am_cv_langinfo_codeset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8587 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8588 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8590 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8591 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8592 | int |
| 8593 | main () |
| 8594 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8595 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8596 | ; |
| 8597 | return 0; |
| 8598 | } |
| 8599 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8600 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8601 | am_cv_langinfo_codeset=yes |
| 8602 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8603 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8604 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8605 | rm -f core conftest.err conftest.$ac_objext \ |
| 8606 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8607 | |
| 8608 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8610 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8611 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8612 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8613 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8614 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8615 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8616 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8617 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8618 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8620 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8621 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8622 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8623 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8624 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8625 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8626 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8627 | int |
| 8628 | main () |
| 8629 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8630 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8631 | ; |
| 8632 | return 0; |
| 8633 | } |
| 8634 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8635 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8636 | am_cv_val_LC_MESSAGES=yes |
| 8637 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8638 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8639 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8640 | rm -f core conftest.err conftest.$ac_objext \ |
| 8641 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8642 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8644 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8645 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8646 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8647 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8648 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8649 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8650 | |
| 8651 | fi |
| 8652 | |
| 8653 | for ac_prog in bison |
| 8654 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8655 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8656 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8658 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8659 | if test "${ac_cv_prog_INTLBISON+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8660 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8661 | else |
| 8662 | if test -n "$INTLBISON"; then |
| 8663 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8664 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8666 | for as_dir in $PATH |
| 8667 | do |
| 8668 | IFS=$as_save_IFS |
| 8669 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8670 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8671 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8672 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8674 | break 2 |
| 8675 | fi |
| 8676 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8677 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8678 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8679 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8680 | fi |
| 8681 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8682 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8683 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8685 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8686 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8687 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8688 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8689 | fi |
| 8690 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8691 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8692 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8693 | done |
| 8694 | |
| 8695 | if test -z "$INTLBISON"; then |
| 8696 | ac_verc_fail=yes |
| 8697 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8699 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8700 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8701 | case $ac_prog_version in |
| 8702 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8703 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8704 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8705 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8706 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8708 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8709 | fi |
| 8710 | if test $ac_verc_fail = yes; then |
| 8711 | INTLBISON=: |
| 8712 | fi |
| 8713 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8714 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8715 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8716 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8717 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8718 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8719 | |
| 8720 | |
| 8721 | |
| 8722 | |
| 8723 | |
| 8724 | |
| 8725 | |
| 8726 | |
| 8727 | |
| 8728 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8730 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8731 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8732 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8733 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8734 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8735 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8736 | fi |
| 8737 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8739 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8740 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8741 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8742 | |
| 8743 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8744 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8745 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8746 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8747 | LIBINTL= |
| 8748 | LTLIBINTL= |
| 8749 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8750 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8751 | if test "$USE_NLS" = "yes"; then |
| 8752 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8753 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8755 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8757 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8758 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8759 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8760 | else |
| 8761 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8762 | fi |
| 8763 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8765 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8766 | |
| 8767 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8768 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8769 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8770 | |
| 8771 | |
| 8772 | |
| 8773 | |
| 8774 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8776 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8777 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8778 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8779 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8781 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8782 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8783 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8784 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8785 | int |
| 8786 | main () |
| 8787 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8788 | bindtextdomain ("", ""); |
| 8789 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8790 | ; |
| 8791 | return 0; |
| 8792 | } |
| 8793 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8794 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8795 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8796 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8797 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8798 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8799 | rm -f core conftest.err conftest.$ac_objext \ |
| 8800 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8801 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8803 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8804 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8805 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8806 | |
| 8807 | |
| 8808 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8809 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8810 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8811 | acl_save_prefix="$prefix" |
| 8812 | prefix="$acl_final_prefix" |
| 8813 | acl_save_exec_prefix="$exec_prefix" |
| 8814 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8815 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8816 | eval additional_includedir=\"$includedir\" |
| 8817 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8818 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8819 | exec_prefix="$acl_save_exec_prefix" |
| 8820 | prefix="$acl_save_prefix" |
| 8821 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8822 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8823 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8824 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8825 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8826 | if test "X$withval" = "Xno"; then |
| 8827 | use_additional=no |
| 8828 | else |
| 8829 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8830 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8831 | acl_save_prefix="$prefix" |
| 8832 | prefix="$acl_final_prefix" |
| 8833 | acl_save_exec_prefix="$exec_prefix" |
| 8834 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8835 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8836 | eval additional_includedir=\"$includedir\" |
| 8837 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8838 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8839 | exec_prefix="$acl_save_exec_prefix" |
| 8840 | prefix="$acl_save_prefix" |
| 8841 | |
| 8842 | else |
| 8843 | additional_includedir="$withval/include" |
| 8844 | additional_libdir="$withval/lib" |
| 8845 | fi |
| 8846 | fi |
| 8847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8848 | fi |
| 8849 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8850 | LIBINTL= |
| 8851 | LTLIBINTL= |
| 8852 | INCINTL= |
| 8853 | rpathdirs= |
| 8854 | ltrpathdirs= |
| 8855 | names_already_handled= |
| 8856 | names_next_round='intl ' |
| 8857 | while test -n "$names_next_round"; do |
| 8858 | names_this_round="$names_next_round" |
| 8859 | names_next_round= |
| 8860 | for name in $names_this_round; do |
| 8861 | already_handled= |
| 8862 | for n in $names_already_handled; do |
| 8863 | if test "$n" = "$name"; then |
| 8864 | already_handled=yes |
| 8865 | break |
| 8866 | fi |
| 8867 | done |
| 8868 | if test -z "$already_handled"; then |
| 8869 | names_already_handled="$names_already_handled $name" |
| 8870 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8871 | eval value=\"\$HAVE_LIB$uppername\" |
| 8872 | if test -n "$value"; then |
| 8873 | if test "$value" = yes; then |
| 8874 | eval value=\"\$LIB$uppername\" |
| 8875 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8876 | eval value=\"\$LTLIB$uppername\" |
| 8877 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8878 | else |
| 8879 | : |
| 8880 | fi |
| 8881 | else |
| 8882 | found_dir= |
| 8883 | found_la= |
| 8884 | found_so= |
| 8885 | found_a= |
| 8886 | if test $use_additional = yes; then |
| 8887 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8888 | found_dir="$additional_libdir" |
| 8889 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8890 | if test -f "$additional_libdir/lib$name.la"; then |
| 8891 | found_la="$additional_libdir/lib$name.la" |
| 8892 | fi |
| 8893 | else |
| 8894 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8895 | found_dir="$additional_libdir" |
| 8896 | found_a="$additional_libdir/lib$name.$libext" |
| 8897 | if test -f "$additional_libdir/lib$name.la"; then |
| 8898 | found_la="$additional_libdir/lib$name.la" |
| 8899 | fi |
| 8900 | fi |
| 8901 | fi |
| 8902 | fi |
| 8903 | if test "X$found_dir" = "X"; then |
| 8904 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8905 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8906 | acl_save_prefix="$prefix" |
| 8907 | prefix="$acl_final_prefix" |
| 8908 | acl_save_exec_prefix="$exec_prefix" |
| 8909 | exec_prefix="$acl_final_exec_prefix" |
| 8910 | eval x=\"$x\" |
| 8911 | exec_prefix="$acl_save_exec_prefix" |
| 8912 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8913 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8914 | case "$x" in |
| 8915 | -L*) |
| 8916 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8917 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8918 | found_dir="$dir" |
| 8919 | found_so="$dir/lib$name.$shlibext" |
| 8920 | if test -f "$dir/lib$name.la"; then |
| 8921 | found_la="$dir/lib$name.la" |
| 8922 | fi |
| 8923 | else |
| 8924 | if test -f "$dir/lib$name.$libext"; then |
| 8925 | found_dir="$dir" |
| 8926 | found_a="$dir/lib$name.$libext" |
| 8927 | if test -f "$dir/lib$name.la"; then |
| 8928 | found_la="$dir/lib$name.la" |
| 8929 | fi |
| 8930 | fi |
| 8931 | fi |
| 8932 | ;; |
| 8933 | esac |
| 8934 | if test "X$found_dir" != "X"; then |
| 8935 | break |
| 8936 | fi |
| 8937 | done |
| 8938 | fi |
| 8939 | if test "X$found_dir" != "X"; then |
| 8940 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 8941 | if test "X$found_so" != "X"; then |
| 8942 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8943 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8944 | else |
| 8945 | haveit= |
| 8946 | for x in $ltrpathdirs; do |
| 8947 | if test "X$x" = "X$found_dir"; then |
| 8948 | haveit=yes |
| 8949 | break |
| 8950 | fi |
| 8951 | done |
| 8952 | if test -z "$haveit"; then |
| 8953 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8954 | fi |
| 8955 | if test "$hardcode_direct" = yes; then |
| 8956 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8957 | else |
| 8958 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8959 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8960 | haveit= |
| 8961 | for x in $rpathdirs; do |
| 8962 | if test "X$x" = "X$found_dir"; then |
| 8963 | haveit=yes |
| 8964 | break |
| 8965 | fi |
| 8966 | done |
| 8967 | if test -z "$haveit"; then |
| 8968 | rpathdirs="$rpathdirs $found_dir" |
| 8969 | fi |
| 8970 | else |
| 8971 | haveit= |
| 8972 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8973 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8974 | acl_save_prefix="$prefix" |
| 8975 | prefix="$acl_final_prefix" |
| 8976 | acl_save_exec_prefix="$exec_prefix" |
| 8977 | exec_prefix="$acl_final_exec_prefix" |
| 8978 | eval x=\"$x\" |
| 8979 | exec_prefix="$acl_save_exec_prefix" |
| 8980 | prefix="$acl_save_prefix" |
| 8981 | |
| 8982 | if test "X$x" = "X-L$found_dir"; then |
| 8983 | haveit=yes |
| 8984 | break |
| 8985 | fi |
| 8986 | done |
| 8987 | if test -z "$haveit"; then |
| 8988 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 8989 | fi |
| 8990 | if test "$hardcode_minus_L" != no; then |
| 8991 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8992 | else |
| 8993 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8994 | fi |
| 8995 | fi |
| 8996 | fi |
| 8997 | fi |
| 8998 | else |
| 8999 | if test "X$found_a" != "X"; then |
| 9000 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9001 | else |
| 9002 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9003 | fi |
| 9004 | fi |
| 9005 | additional_includedir= |
| 9006 | case "$found_dir" in |
| 9007 | */lib | */lib/) |
| 9008 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9009 | additional_includedir="$basedir/include" |
| 9010 | ;; |
| 9011 | esac |
| 9012 | if test "X$additional_includedir" != "X"; then |
| 9013 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9014 | haveit= |
| 9015 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9016 | if test -n "$GCC"; then |
| 9017 | case $host_os in |
| 9018 | linux*) haveit=yes;; |
| 9019 | esac |
| 9020 | fi |
| 9021 | fi |
| 9022 | if test -z "$haveit"; then |
| 9023 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9025 | acl_save_prefix="$prefix" |
| 9026 | prefix="$acl_final_prefix" |
| 9027 | acl_save_exec_prefix="$exec_prefix" |
| 9028 | exec_prefix="$acl_final_exec_prefix" |
| 9029 | eval x=\"$x\" |
| 9030 | exec_prefix="$acl_save_exec_prefix" |
| 9031 | prefix="$acl_save_prefix" |
| 9032 | |
| 9033 | if test "X$x" = "X-I$additional_includedir"; then |
| 9034 | haveit=yes |
| 9035 | break |
| 9036 | fi |
| 9037 | done |
| 9038 | if test -z "$haveit"; then |
| 9039 | if test -d "$additional_includedir"; then |
| 9040 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9041 | fi |
| 9042 | fi |
| 9043 | fi |
| 9044 | fi |
| 9045 | fi |
| 9046 | if test -n "$found_la"; then |
| 9047 | save_libdir="$libdir" |
| 9048 | case "$found_la" in |
| 9049 | */* | *\\*) . "$found_la" ;; |
| 9050 | *) . "./$found_la" ;; |
| 9051 | esac |
| 9052 | libdir="$save_libdir" |
| 9053 | for dep in $dependency_libs; do |
| 9054 | case "$dep" in |
| 9055 | -L*) |
| 9056 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9057 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9058 | haveit= |
| 9059 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9060 | if test -n "$GCC"; then |
| 9061 | case $host_os in |
| 9062 | linux*) haveit=yes;; |
| 9063 | esac |
| 9064 | fi |
| 9065 | fi |
| 9066 | if test -z "$haveit"; then |
| 9067 | haveit= |
| 9068 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9069 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9070 | acl_save_prefix="$prefix" |
| 9071 | prefix="$acl_final_prefix" |
| 9072 | acl_save_exec_prefix="$exec_prefix" |
| 9073 | exec_prefix="$acl_final_exec_prefix" |
| 9074 | eval x=\"$x\" |
| 9075 | exec_prefix="$acl_save_exec_prefix" |
| 9076 | prefix="$acl_save_prefix" |
| 9077 | |
| 9078 | if test "X$x" = "X-L$additional_libdir"; then |
| 9079 | haveit=yes |
| 9080 | break |
| 9081 | fi |
| 9082 | done |
| 9083 | if test -z "$haveit"; then |
| 9084 | if test -d "$additional_libdir"; then |
| 9085 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9086 | fi |
| 9087 | fi |
| 9088 | haveit= |
| 9089 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9090 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9091 | acl_save_prefix="$prefix" |
| 9092 | prefix="$acl_final_prefix" |
| 9093 | acl_save_exec_prefix="$exec_prefix" |
| 9094 | exec_prefix="$acl_final_exec_prefix" |
| 9095 | eval x=\"$x\" |
| 9096 | exec_prefix="$acl_save_exec_prefix" |
| 9097 | prefix="$acl_save_prefix" |
| 9098 | |
| 9099 | if test "X$x" = "X-L$additional_libdir"; then |
| 9100 | haveit=yes |
| 9101 | break |
| 9102 | fi |
| 9103 | done |
| 9104 | if test -z "$haveit"; then |
| 9105 | if test -d "$additional_libdir"; then |
| 9106 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9107 | fi |
| 9108 | fi |
| 9109 | fi |
| 9110 | fi |
| 9111 | ;; |
| 9112 | -R*) |
| 9113 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9114 | if test "$enable_rpath" != no; then |
| 9115 | haveit= |
| 9116 | for x in $rpathdirs; do |
| 9117 | if test "X$x" = "X$dir"; then |
| 9118 | haveit=yes |
| 9119 | break |
| 9120 | fi |
| 9121 | done |
| 9122 | if test -z "$haveit"; then |
| 9123 | rpathdirs="$rpathdirs $dir" |
| 9124 | fi |
| 9125 | haveit= |
| 9126 | for x in $ltrpathdirs; do |
| 9127 | if test "X$x" = "X$dir"; then |
| 9128 | haveit=yes |
| 9129 | break |
| 9130 | fi |
| 9131 | done |
| 9132 | if test -z "$haveit"; then |
| 9133 | ltrpathdirs="$ltrpathdirs $dir" |
| 9134 | fi |
| 9135 | fi |
| 9136 | ;; |
| 9137 | -l*) |
| 9138 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9139 | ;; |
| 9140 | *.la) |
| 9141 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9142 | ;; |
| 9143 | *) |
| 9144 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9145 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9146 | ;; |
| 9147 | esac |
| 9148 | done |
| 9149 | fi |
| 9150 | else |
| 9151 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9152 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9153 | fi |
| 9154 | fi |
| 9155 | fi |
| 9156 | done |
| 9157 | done |
| 9158 | if test "X$rpathdirs" != "X"; then |
| 9159 | if test -n "$hardcode_libdir_separator"; then |
| 9160 | alldirs= |
| 9161 | for found_dir in $rpathdirs; do |
| 9162 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9163 | done |
| 9164 | acl_save_libdir="$libdir" |
| 9165 | libdir="$alldirs" |
| 9166 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9167 | libdir="$acl_save_libdir" |
| 9168 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9169 | else |
| 9170 | for found_dir in $rpathdirs; do |
| 9171 | acl_save_libdir="$libdir" |
| 9172 | libdir="$found_dir" |
| 9173 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9174 | libdir="$acl_save_libdir" |
| 9175 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9176 | done |
| 9177 | fi |
| 9178 | fi |
| 9179 | if test "X$ltrpathdirs" != "X"; then |
| 9180 | for found_dir in $ltrpathdirs; do |
| 9181 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9182 | done |
| 9183 | fi |
| 9184 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9186 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9187 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9188 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9189 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9190 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9191 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9192 | gt_save_LIBS="$LIBS" |
| 9193 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9195 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9196 | #include <libintl.h> |
| 9197 | extern int _nl_msg_cat_cntr; |
| 9198 | extern |
| 9199 | #ifdef __cplusplus |
| 9200 | "C" |
| 9201 | #endif |
| 9202 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9203 | int |
| 9204 | main () |
| 9205 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9206 | bindtextdomain ("", ""); |
| 9207 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9208 | ; |
| 9209 | return 0; |
| 9210 | } |
| 9211 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9212 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9213 | gt_cv_func_gnugettext1_libintl=yes |
| 9214 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9215 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9216 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9217 | rm -f core conftest.err conftest.$ac_objext \ |
| 9218 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9219 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9220 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9222 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9223 | #include <libintl.h> |
| 9224 | extern int _nl_msg_cat_cntr; |
| 9225 | extern |
| 9226 | #ifdef __cplusplus |
| 9227 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9228 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9229 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9230 | int |
| 9231 | main () |
| 9232 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9233 | bindtextdomain ("", ""); |
| 9234 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9235 | ; |
| 9236 | return 0; |
| 9237 | } |
| 9238 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9239 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9240 | LIBINTL="$LIBINTL $LIBICONV" |
| 9241 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9242 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9243 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9244 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9245 | rm -f core conftest.err conftest.$ac_objext \ |
| 9246 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9247 | fi |
| 9248 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9249 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9250 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9252 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9253 | fi |
| 9254 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9255 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9256 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9257 | && test "$PACKAGE" != gettext-runtime \ |
| 9258 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9259 | gt_use_preinstalled_gnugettext=yes |
| 9260 | else |
| 9261 | LIBINTL= |
| 9262 | LTLIBINTL= |
| 9263 | INCINTL= |
| 9264 | fi |
| 9265 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9266 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9267 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9268 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9269 | fi |
| 9270 | fi |
| 9271 | |
| 9272 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9273 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9274 | USE_INCLUDED_LIBINTL=yes |
| 9275 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9276 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9277 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9278 | fi |
| 9279 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9280 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9281 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9282 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9283 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9284 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9285 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9286 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9287 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9288 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9289 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9290 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9291 | else |
| 9292 | USE_NLS=no |
| 9293 | fi |
| 9294 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9295 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9297 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9299 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9300 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9302 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9303 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9304 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9305 | gt_source="external libintl" |
| 9306 | else |
| 9307 | gt_source="libc" |
| 9308 | fi |
| 9309 | else |
| 9310 | gt_source="included intl directory" |
| 9311 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9313 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9314 | fi |
| 9315 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9316 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9317 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9318 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9319 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9321 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9323 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9324 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9325 | for element in $INCINTL; do |
| 9326 | haveit= |
| 9327 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9328 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9329 | acl_save_prefix="$prefix" |
| 9330 | prefix="$acl_final_prefix" |
| 9331 | acl_save_exec_prefix="$exec_prefix" |
| 9332 | exec_prefix="$acl_final_exec_prefix" |
| 9333 | eval x=\"$x\" |
| 9334 | exec_prefix="$acl_save_exec_prefix" |
| 9335 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9336 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9337 | if test "X$x" = "X$element"; then |
| 9338 | haveit=yes |
| 9339 | break |
| 9340 | fi |
| 9341 | done |
| 9342 | if test -z "$haveit"; then |
| 9343 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9344 | fi |
| 9345 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9346 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9347 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9348 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9349 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9350 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9351 | |
| 9352 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9353 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9354 | |
| 9355 | fi |
| 9356 | |
| 9357 | POSUB=po |
| 9358 | fi |
| 9359 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9360 | |
| 9361 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9362 | BUILD_INCLUDED_LIBINTL=yes |
| 9363 | fi |
| 9364 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9365 | |
| 9366 | |
| 9367 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9368 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9369 | nls_cv_header_intl= |
| 9370 | nls_cv_header_libgt= |
| 9371 | |
| 9372 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9373 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9374 | |
| 9375 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9376 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9377 | |
| 9378 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9379 | |
| 9380 | |
| 9381 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9382 | INTLOBJS="\$(GETTOBJS)" |
| 9383 | fi |
| 9384 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9385 | |
| 9386 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9387 | |
| 9388 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9389 | |
| 9390 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9391 | |
| 9392 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9393 | |
| 9394 | |
| 9395 | |
| 9396 | |
| 9397 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9399 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9400 | set x ${MAKE-make} |
| 9401 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9402 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9403 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9404 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9405 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9406 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9407 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9408 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9409 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9410 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9411 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9412 | *@@@%%%=?*=@@@%%%*) |
| 9413 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9414 | *) |
| 9415 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9416 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9417 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9418 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9419 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9421 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9422 | SET_MAKE= |
| 9423 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9425 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9426 | SET_MAKE="MAKE=${MAKE-make}" |
| 9427 | fi |
| 9428 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9430 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9431 | if test "${_cv_gnu_make_command+set}" = set; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9432 | $as_echo_n "(cached) " >&6 |
| 9433 | else |
| 9434 | _cv_gnu_make_command='' ; |
| 9435 | for a in "$MAKE" make gmake gnumake ; do |
| 9436 | if test -z "$a" ; then continue ; fi ; |
| 9437 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9438 | _cv_gnu_make_command=$a ; |
| 9439 | break; |
| 9440 | fi |
| 9441 | done ; |
| 9442 | |
| 9443 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9445 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9446 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9447 | ifGNUmake='' ; |
| 9448 | ifNotGNUmake='#' ; |
| 9449 | else |
| 9450 | ifGNUmake='#' ; |
| 9451 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9453 | $as_echo "\"Not found\"" >&6; }; |
| 9454 | fi |
| 9455 | |
| 9456 | |
| 9457 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9458 | # Extract the first word of "ln", so it can be a program name with args. |
| 9459 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9461 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9462 | if test "${ac_cv_path_LN+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9463 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9464 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9465 | case $LN in |
| 9466 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9467 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9468 | ;; |
| 9469 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9471 | for as_dir in $PATH |
| 9472 | do |
| 9473 | IFS=$as_save_IFS |
| 9474 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9475 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9476 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9477 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9479 | break 2 |
| 9480 | fi |
| 9481 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9482 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9483 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9484 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9485 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9486 | ;; |
| 9487 | esac |
| 9488 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9489 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9490 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9492 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9493 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9495 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9496 | fi |
| 9497 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9498 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9500 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9501 | LN_S=$as_ln_s |
| 9502 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9504 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9505 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9507 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9508 | fi |
| 9509 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9510 | # Extract the first word of "mv", so it can be a program name with args. |
| 9511 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9513 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9514 | if test "${ac_cv_path_MV+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9515 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9516 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9517 | case $MV in |
| 9518 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9519 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9520 | ;; |
| 9521 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9523 | for as_dir in $PATH |
| 9524 | do |
| 9525 | IFS=$as_save_IFS |
| 9526 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9527 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9529 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9531 | break 2 |
| 9532 | fi |
| 9533 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9534 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9535 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9536 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9537 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9538 | ;; |
| 9539 | esac |
| 9540 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9541 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9542 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9544 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9545 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9547 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9548 | fi |
| 9549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9550 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9551 | # Extract the first word of "cp", so it can be a program name with args. |
| 9552 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9554 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9555 | if test "${ac_cv_path_CP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9556 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9557 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9558 | case $CP in |
| 9559 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9560 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9561 | ;; |
| 9562 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9564 | for as_dir in $PATH |
| 9565 | do |
| 9566 | IFS=$as_save_IFS |
| 9567 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9568 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9570 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9572 | break 2 |
| 9573 | fi |
| 9574 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9575 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9576 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9577 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9578 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9579 | ;; |
| 9580 | esac |
| 9581 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9583 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9585 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9586 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9588 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9589 | fi |
| 9590 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9591 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9592 | # Extract the first word of "rm", so it can be a program name with args. |
| 9593 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9595 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9596 | if test "${ac_cv_path_RM+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9597 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9598 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9599 | case $RM in |
| 9600 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9601 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9602 | ;; |
| 9603 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9605 | for as_dir in $PATH |
| 9606 | do |
| 9607 | IFS=$as_save_IFS |
| 9608 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9609 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9610 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9611 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9613 | break 2 |
| 9614 | fi |
| 9615 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9616 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9617 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9618 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9619 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9620 | ;; |
| 9621 | esac |
| 9622 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9623 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9624 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9626 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9627 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9629 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9630 | fi |
| 9631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9632 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9633 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9634 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9636 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9637 | if test "${ac_cv_path_CHMOD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9638 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9639 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9640 | case $CHMOD in |
| 9641 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9642 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9643 | ;; |
| 9644 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9646 | for as_dir in $PATH |
| 9647 | do |
| 9648 | IFS=$as_save_IFS |
| 9649 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9650 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9651 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9652 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9654 | break 2 |
| 9655 | fi |
| 9656 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9657 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9658 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9659 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9660 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9661 | ;; |
| 9662 | esac |
| 9663 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9664 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9665 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9667 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9668 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9670 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9671 | fi |
| 9672 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9673 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9674 | for ac_prog in gawk mawk nawk awk |
| 9675 | do |
| 9676 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9677 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9679 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9680 | if test "${ac_cv_prog_AWK+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9681 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9682 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9683 | if test -n "$AWK"; then |
| 9684 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9685 | else |
| 9686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9687 | for as_dir in $PATH |
| 9688 | do |
| 9689 | IFS=$as_save_IFS |
| 9690 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9691 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9692 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9693 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9694 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9695 | break 2 |
| 9696 | fi |
| 9697 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9698 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9699 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9700 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9701 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9702 | fi |
| 9703 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9704 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9706 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9707 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9709 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9710 | fi |
| 9711 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9712 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9713 | test -n "$AWK" && break |
| 9714 | done |
| 9715 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9717 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9718 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9719 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9720 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9721 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9722 | then ac_cv_path_EGREP="$GREP -E" |
| 9723 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9724 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9725 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9726 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9728 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9729 | do |
| 9730 | IFS=$as_save_IFS |
| 9731 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9732 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9733 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9734 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 9735 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 9736 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9737 | # Check for GNU $ac_path_EGREP |
| 9738 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9739 | *GNU*) |
| 9740 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9741 | *) |
| 9742 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9743 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9744 | while : |
| 9745 | do |
| 9746 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9747 | mv "conftest.tmp" "conftest.in" |
| 9748 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9749 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9750 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9751 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9752 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9753 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9754 | # Best one so far, save it but keep looking for a better one |
| 9755 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9756 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9757 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9758 | # 10*(2^10) chars as input seems more than enough |
| 9759 | test $ac_count -gt 10 && break |
| 9760 | done |
| 9761 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9762 | esac |
| 9763 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9764 | $ac_path_EGREP_found && break 3 |
| 9765 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9766 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9767 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9768 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9769 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9770 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9771 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9772 | else |
| 9773 | ac_cv_path_EGREP=$EGREP |
| 9774 | fi |
| 9775 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9776 | fi |
| 9777 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9779 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9780 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9781 | |
| 9782 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9783 | # Extract the first word of "sed", so it can be a program name with args. |
| 9784 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9786 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9787 | if test "${ac_cv_path_SED+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9788 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9789 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9790 | case $SED in |
| 9791 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9792 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9793 | ;; |
| 9794 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9796 | for as_dir in $PATH |
| 9797 | do |
| 9798 | IFS=$as_save_IFS |
| 9799 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9800 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9802 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9804 | break 2 |
| 9805 | fi |
| 9806 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9807 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9808 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9809 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9810 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9811 | ;; |
| 9812 | esac |
| 9813 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9814 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9815 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9817 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9818 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9820 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9821 | fi |
| 9822 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9823 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9824 | # Extract the first word of "perl", so it can be a program name with args. |
| 9825 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9827 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9828 | if test "${ac_cv_path_PERL+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9829 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9830 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9831 | case $PERL in |
| 9832 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9833 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9834 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9835 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9837 | for as_dir in $PATH |
| 9838 | do |
| 9839 | IFS=$as_save_IFS |
| 9840 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9841 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9842 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9844 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9845 | break 2 |
| 9846 | fi |
| 9847 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9848 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9849 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9850 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9851 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9852 | ;; |
| 9853 | esac |
| 9854 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9855 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9856 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9858 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9859 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9861 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9862 | fi |
| 9863 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9864 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9865 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9866 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9868 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9869 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9870 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9871 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9872 | case $LDCONFIG in |
| 9873 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9874 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9875 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9876 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9878 | for as_dir in $PATH |
| 9879 | do |
| 9880 | IFS=$as_save_IFS |
| 9881 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9882 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9884 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9885 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9886 | break 2 |
| 9887 | fi |
| 9888 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9889 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9890 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9891 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9892 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9893 | ;; |
| 9894 | esac |
| 9895 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9896 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9897 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9899 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9900 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9902 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9903 | fi |
| 9904 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9905 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9906 | if test -n "$ac_tool_prefix"; then |
| 9907 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9908 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9910 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9911 | if test "${ac_cv_prog_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9912 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9913 | else |
| 9914 | if test -n "$AR"; then |
| 9915 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9916 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9917 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9918 | for as_dir in $PATH |
| 9919 | do |
| 9920 | IFS=$as_save_IFS |
| 9921 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9922 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9923 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9924 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9925 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9926 | break 2 |
| 9927 | fi |
| 9928 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9929 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9930 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9931 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9932 | fi |
| 9933 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9934 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9935 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9937 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9938 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9940 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9941 | fi |
| 9942 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9943 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9944 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9945 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9946 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9947 | # Extract the first word of "ar", so it can be a program name with args. |
| 9948 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9950 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9951 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9952 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9953 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9954 | if test -n "$ac_ct_AR"; then |
| 9955 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9956 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9958 | for as_dir in $PATH |
| 9959 | do |
| 9960 | IFS=$as_save_IFS |
| 9961 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9962 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9964 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9966 | break 2 |
| 9967 | fi |
| 9968 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9969 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9970 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9971 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9972 | fi |
| 9973 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9974 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9975 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9977 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9978 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9980 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9981 | fi |
| 9982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9983 | if test "x$ac_ct_AR" = x; then |
| 9984 | AR="ar" |
| 9985 | else |
| 9986 | case $cross_compiling:$ac_tool_warned in |
| 9987 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9990 | ac_tool_warned=yes ;; |
| 9991 | esac |
| 9992 | AR=$ac_ct_AR |
| 9993 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9994 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9995 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9996 | fi |
| 9997 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9998 | if test -n "$ac_tool_prefix"; then |
| 9999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10001 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10002 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10003 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10004 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10005 | else |
| 10006 | if test -n "$RANLIB"; then |
| 10007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10008 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10010 | for as_dir in $PATH |
| 10011 | do |
| 10012 | IFS=$as_save_IFS |
| 10013 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10014 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10018 | break 2 |
| 10019 | fi |
| 10020 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10021 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10022 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10023 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10024 | fi |
| 10025 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10026 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10027 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10029 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10030 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10032 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10033 | fi |
| 10034 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10035 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10036 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10037 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10038 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10039 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10040 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10042 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10043 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10044 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10045 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10046 | if test -n "$ac_ct_RANLIB"; then |
| 10047 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10048 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10050 | for as_dir in $PATH |
| 10051 | do |
| 10052 | IFS=$as_save_IFS |
| 10053 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10054 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10056 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10058 | break 2 |
| 10059 | fi |
| 10060 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10061 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10062 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10063 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10064 | fi |
| 10065 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10066 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10067 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10069 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10070 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10072 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10073 | fi |
| 10074 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10075 | if test "x$ac_ct_RANLIB" = x; then |
| 10076 | RANLIB=":" |
| 10077 | else |
| 10078 | case $cross_compiling:$ac_tool_warned in |
| 10079 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10080 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10081 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10082 | ac_tool_warned=yes ;; |
| 10083 | esac |
| 10084 | RANLIB=$ac_ct_RANLIB |
| 10085 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10086 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10087 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10088 | fi |
| 10089 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10090 | if test -n "$ac_tool_prefix"; then |
| 10091 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10092 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10094 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10095 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10096 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10097 | else |
| 10098 | if test -n "$STRIP"; then |
| 10099 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10100 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10102 | for as_dir in $PATH |
| 10103 | do |
| 10104 | IFS=$as_save_IFS |
| 10105 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10106 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10107 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10108 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10109 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10110 | break 2 |
| 10111 | fi |
| 10112 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10113 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10114 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10115 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10116 | fi |
| 10117 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10118 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10119 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10121 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10122 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10124 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10125 | fi |
| 10126 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10127 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10128 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10129 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10130 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10131 | # Extract the first word of "strip", so it can be a program name with args. |
| 10132 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10134 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10135 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10136 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10137 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10138 | if test -n "$ac_ct_STRIP"; then |
| 10139 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10140 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10141 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10142 | for as_dir in $PATH |
| 10143 | do |
| 10144 | IFS=$as_save_IFS |
| 10145 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10146 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10147 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10148 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10149 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10150 | break 2 |
| 10151 | fi |
| 10152 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10153 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10154 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10155 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10156 | fi |
| 10157 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10158 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10159 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10161 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10162 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10164 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10165 | fi |
| 10166 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10167 | if test "x$ac_ct_STRIP" = x; then |
| 10168 | STRIP=":" |
| 10169 | else |
| 10170 | case $cross_compiling:$ac_tool_warned in |
| 10171 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10174 | ac_tool_warned=yes ;; |
| 10175 | esac |
| 10176 | STRIP=$ac_ct_STRIP |
| 10177 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10178 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10179 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10180 | fi |
| 10181 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10182 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10183 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10185 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10186 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10187 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10188 | else |
| 10189 | if test -n "$MAKEINFO"; then |
| 10190 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10191 | else |
| 10192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10193 | for as_dir in $PATH |
| 10194 | do |
| 10195 | IFS=$as_save_IFS |
| 10196 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10199 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10201 | break 2 |
| 10202 | fi |
| 10203 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10204 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10205 | IFS=$as_save_IFS |
| 10206 | |
| 10207 | fi |
| 10208 | fi |
| 10209 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10210 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10212 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10213 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10215 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10216 | fi |
| 10217 | |
| 10218 | |
| 10219 | if test "_$MAKEINFO" = "_"; then |
| 10220 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10221 | else |
| 10222 | case "$MAKEINFO" in |
| 10223 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10225 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10226 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10227 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10228 | ;; |
| 10229 | *) |
| 10230 | ;; |
| 10231 | esac |
| 10232 | fi |
| 10233 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10234 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10235 | # See if we need a separate native compiler. |
| 10236 | if test $cross_compiling = no; then |
| 10237 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10238 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10239 | else |
| 10240 | for ac_prog in gcc cc |
| 10241 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10242 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10243 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10245 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10246 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10247 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10248 | else |
| 10249 | if test -n "$BUILD_CC"; then |
| 10250 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10251 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10253 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10254 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10255 | IFS=$as_save_IFS |
| 10256 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10257 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10258 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10259 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10260 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10261 | break 2 |
| 10262 | fi |
| 10263 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10264 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10265 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10266 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10267 | fi |
| 10268 | fi |
| 10269 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10270 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10272 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10273 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10275 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10276 | fi |
| 10277 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10279 | test -n "$BUILD_CC" && break |
| 10280 | done |
| 10281 | |
| 10282 | fi |
Mike Frysinger | 677fc91 | 2012-03-06 20:13:54 -0500 | [diff] [blame] | 10283 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10284 | do : |
| 10285 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10286 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10287 | eval as_val=\$$as_ac_Header |
| 10288 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10289 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10290 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10291 | _ACEOF |
| 10292 | |
| 10293 | fi |
| 10294 | |
| 10295 | done |
| 10296 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10297 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10298 | do : |
| 10299 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10300 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10301 | #if HAVE_SYS_QUEUE_H |
| 10302 | #include <sys/queue.h> |
| 10303 | #endif |
| 10304 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10305 | " |
| 10306 | eval as_val=\$$as_ac_Header |
| 10307 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10308 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10309 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10310 | _ACEOF |
| 10311 | |
| 10312 | fi |
| 10313 | |
| 10314 | done |
| 10315 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10316 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10317 | do : |
| 10318 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10319 | #if HAVE_SYS_TYPES_H |
| 10320 | #include <sys/types.h> |
| 10321 | #endif |
| 10322 | #if HAVE_SYS_SOCKET |
| 10323 | #include <sys/socket.h> |
| 10324 | #endif |
| 10325 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10326 | " |
| 10327 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10328 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10329 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10330 | _ACEOF |
| 10331 | |
| 10332 | fi |
| 10333 | |
| 10334 | done |
| 10335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10336 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10337 | do : |
| 10338 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 10339 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10340 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10341 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10342 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10343 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10344 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 10345 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10346 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10347 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10348 | |
| 10349 | fi |
| 10350 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10351 | fi |
| 10352 | done |
| 10353 | |
| 10354 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10355 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10356 | " |
| 10357 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10358 | |
| 10359 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10360 | |
| 10361 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10362 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10363 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10364 | " |
| 10365 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10366 | |
| 10367 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10368 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10369 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10370 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10371 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10372 | " |
| 10373 | if test "x$ac_cv_have_decl_llseek" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10374 | |
| 10375 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10376 | |
| 10377 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10378 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10379 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10380 | #define _LARGEFILE64_SOURCE |
| 10381 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10382 | " |
| 10383 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10384 | |
| 10385 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10386 | |
| 10387 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10388 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10389 | # The cast to long int works around a bug in the HP C Compiler |
| 10390 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10391 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10392 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10394 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10395 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10396 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10397 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10398 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10400 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10401 | if test "$ac_cv_type_short" = yes; then |
| 10402 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10403 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10404 | { as_fn_set_status 77 |
| 10405 | as_fn_error "cannot compute sizeof (short) |
| 10406 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10407 | else |
| 10408 | ac_cv_sizeof_short=0 |
| 10409 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10410 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10411 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10412 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10414 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10415 | |
| 10416 | |
| 10417 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10418 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10419 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10420 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10421 | |
| 10422 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10423 | # The cast to long int works around a bug in the HP C Compiler |
| 10424 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10425 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10426 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10428 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10429 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10430 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10431 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10432 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10433 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10434 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10435 | if test "$ac_cv_type_int" = yes; then |
| 10436 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10437 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10438 | { as_fn_set_status 77 |
| 10439 | as_fn_error "cannot compute sizeof (int) |
| 10440 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10441 | else |
| 10442 | ac_cv_sizeof_int=0 |
| 10443 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10444 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10445 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10446 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10448 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10449 | |
| 10450 | |
| 10451 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10452 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10453 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10454 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10455 | |
| 10456 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10457 | # The cast to long int works around a bug in the HP C Compiler |
| 10458 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10459 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10460 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10462 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10463 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10464 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10465 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10466 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10468 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10469 | if test "$ac_cv_type_long" = yes; then |
| 10470 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10471 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10472 | { as_fn_set_status 77 |
| 10473 | as_fn_error "cannot compute sizeof (long) |
| 10474 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10475 | else |
| 10476 | ac_cv_sizeof_long=0 |
| 10477 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10478 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10480 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10482 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10483 | |
| 10484 | |
| 10485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10486 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10487 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10488 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10489 | |
| 10490 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10491 | # The cast to long int works around a bug in the HP C Compiler |
| 10492 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10493 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10494 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10496 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10497 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10498 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10499 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10500 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10501 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10502 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10503 | if test "$ac_cv_type_long_long" = yes; then |
| 10504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10506 | { as_fn_set_status 77 |
| 10507 | as_fn_error "cannot compute sizeof (long long) |
| 10508 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10509 | else |
| 10510 | ac_cv_sizeof_long_long=0 |
| 10511 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10512 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10513 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10514 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10516 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10517 | |
| 10518 | |
| 10519 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10520 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10521 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10522 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10523 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10524 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10525 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10526 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10527 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10528 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 10529 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10530 | |
| 10531 | |
| 10532 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10534 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10535 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10536 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10537 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10538 | ac_cv_c_bigendian=unknown |
| 10539 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10541 | /* end confdefs.h. */ |
| 10542 | #ifndef __APPLE_CC__ |
| 10543 | not a universal capable compiler |
| 10544 | #endif |
| 10545 | typedef int dummy; |
| 10546 | |
| 10547 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10548 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10549 | |
| 10550 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10551 | # there are at least two -arch flags with different values. |
| 10552 | ac_arch= |
| 10553 | ac_prev= |
| 10554 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10555 | if test -n "$ac_prev"; then |
| 10556 | case $ac_word in |
| 10557 | i?86 | x86_64 | ppc | ppc64) |
| 10558 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10559 | ac_arch=$ac_word |
| 10560 | else |
| 10561 | ac_cv_c_bigendian=universal |
| 10562 | break |
| 10563 | fi |
| 10564 | ;; |
| 10565 | esac |
| 10566 | ac_prev= |
| 10567 | elif test "x$ac_word" = "x-arch"; then |
| 10568 | ac_prev=arch |
| 10569 | fi |
| 10570 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10571 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10573 | if test $ac_cv_c_bigendian = unknown; then |
| 10574 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10576 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10577 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10578 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10579 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10580 | int |
| 10581 | main () |
| 10582 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10583 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10584 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10585 | && LITTLE_ENDIAN) |
| 10586 | bogus endian macros |
| 10587 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10588 | |
| 10589 | ; |
| 10590 | return 0; |
| 10591 | } |
| 10592 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10593 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10594 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10596 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10597 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10598 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10600 | int |
| 10601 | main () |
| 10602 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10603 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10604 | not big endian |
| 10605 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10606 | |
| 10607 | ; |
| 10608 | return 0; |
| 10609 | } |
| 10610 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10611 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10612 | ac_cv_c_bigendian=yes |
| 10613 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10614 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10615 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10617 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10619 | fi |
| 10620 | if test $ac_cv_c_bigendian = unknown; then |
| 10621 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10623 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10624 | #include <limits.h> |
| 10625 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10626 | int |
| 10627 | main () |
| 10628 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10629 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10630 | bogus endian macros |
| 10631 | #endif |
| 10632 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10633 | ; |
| 10634 | return 0; |
| 10635 | } |
| 10636 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10637 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10638 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10640 | /* end confdefs.h. */ |
| 10641 | #include <limits.h> |
| 10642 | |
| 10643 | int |
| 10644 | main () |
| 10645 | { |
| 10646 | #ifndef _BIG_ENDIAN |
| 10647 | not big endian |
| 10648 | #endif |
| 10649 | |
| 10650 | ; |
| 10651 | return 0; |
| 10652 | } |
| 10653 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10654 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10655 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10656 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10657 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10658 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10660 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10661 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10662 | fi |
| 10663 | if test $ac_cv_c_bigendian = unknown; then |
| 10664 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10665 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10666 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10668 | /* end confdefs.h. */ |
| 10669 | short int ascii_mm[] = |
| 10670 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10671 | short int ascii_ii[] = |
| 10672 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10673 | int use_ascii (int i) { |
| 10674 | return ascii_mm[i] + ascii_ii[i]; |
| 10675 | } |
| 10676 | short int ebcdic_ii[] = |
| 10677 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10678 | short int ebcdic_mm[] = |
| 10679 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10680 | int use_ebcdic (int i) { |
| 10681 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10682 | } |
| 10683 | extern int foo; |
| 10684 | |
| 10685 | int |
| 10686 | main () |
| 10687 | { |
| 10688 | return use_ascii (foo) == use_ebcdic (foo); |
| 10689 | ; |
| 10690 | return 0; |
| 10691 | } |
| 10692 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10693 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10694 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10695 | ac_cv_c_bigendian=yes |
| 10696 | fi |
| 10697 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10698 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10699 | ac_cv_c_bigendian=no |
| 10700 | else |
| 10701 | # finding both strings is unlikely to happen, but who knows? |
| 10702 | ac_cv_c_bigendian=unknown |
| 10703 | fi |
| 10704 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10705 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10707 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10709 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10710 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10711 | int |
| 10712 | main () |
| 10713 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10714 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10715 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10716 | union |
| 10717 | { |
| 10718 | long int l; |
| 10719 | char c[sizeof (long int)]; |
| 10720 | } u; |
| 10721 | u.l = 1; |
| 10722 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10723 | |
| 10724 | ; |
| 10725 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10726 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10727 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10728 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10729 | ac_cv_c_bigendian=no |
| 10730 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10731 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10732 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10733 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10734 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10735 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10736 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10737 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10738 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10740 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10741 | case $ac_cv_c_bigendian in #( |
| 10742 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10743 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10744 | ;; #( |
| 10745 | no) |
| 10746 | ;; #( |
| 10747 | universal) |
| 10748 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10749 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10750 | |
| 10751 | ;; #( |
| 10752 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10753 | as_fn_error "unknown endianness |
| 10754 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10755 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10756 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10757 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 10758 | ASM_TYPES_HEADER=./asm_types.h |
| 10759 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10760 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10761 | > public_config.h |
| 10762 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10763 | uniq tmp_config.$$ >> public_config.h |
| 10764 | else |
| 10765 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10766 | fi |
| 10767 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10768 | uniq tmp_config.$$ >> public_config.h |
| 10769 | else |
| 10770 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10771 | fi |
| 10772 | rm -f tmp_config.$$ |
| 10773 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10774 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10775 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10776 | do : |
| 10777 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 10778 | if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10779 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10780 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10781 | _ACEOF |
| 10782 | |
| 10783 | fi |
| 10784 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10785 | done |
| 10786 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10787 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10788 | if test "x$ac_cv_type_intptr_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10789 | |
| 10790 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10791 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10792 | _ACEOF |
| 10793 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10794 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10795 | fi |
| 10796 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10798 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10799 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10800 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10801 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10803 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10804 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10805 | int |
| 10806 | main () |
| 10807 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10808 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10809 | ; |
| 10810 | return 0; |
| 10811 | } |
| 10812 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10813 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10814 | e2fsprogs_cv_struct_st_flags=yes |
| 10815 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10816 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10819 | fi |
| 10820 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10822 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10823 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10825 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10826 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10827 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10828 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10830 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10831 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10832 | int |
| 10833 | main () |
| 10834 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10835 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10836 | ; |
| 10837 | return 0; |
| 10838 | } |
| 10839 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10840 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10841 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10842 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10843 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10844 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10845 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10846 | fi |
| 10847 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10849 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10850 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10851 | |
| 10852 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10853 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10854 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10855 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10856 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10857 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10858 | " |
| 10859 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10860 | |
| 10861 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10862 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10863 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10864 | |
| 10865 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10866 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10867 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10869 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10870 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10871 | $as_echo_n "(cached) " >&6 |
| 10872 | else |
| 10873 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10875 | /* end confdefs.h. */ |
| 10876 | |
| 10877 | /* Override any GCC internal prototype to avoid an error. |
| 10878 | Use char because int might match the return type of a GCC |
| 10879 | builtin and then its argument prototype would still apply. */ |
| 10880 | #ifdef __cplusplus |
| 10881 | extern "C" |
| 10882 | #endif |
| 10883 | char blkid_probe_all (); |
| 10884 | int |
| 10885 | main () |
| 10886 | { |
| 10887 | return blkid_probe_all (); |
| 10888 | ; |
| 10889 | return 0; |
| 10890 | } |
| 10891 | _ACEOF |
| 10892 | for ac_lib in '' blkid; do |
| 10893 | if test -z "$ac_lib"; then |
| 10894 | ac_res="none required" |
| 10895 | else |
| 10896 | ac_res=-l$ac_lib |
| 10897 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10898 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10899 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10900 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10901 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10902 | rm -f core conftest.err conftest.$ac_objext \ |
| 10903 | conftest$ac_exeext |
| 10904 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10905 | break |
| 10906 | fi |
| 10907 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10908 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
| 10909 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10910 | else |
| 10911 | ac_cv_search_blkid_probe_all=no |
| 10912 | fi |
| 10913 | rm conftest.$ac_ext |
| 10914 | LIBS=$ac_func_search_save_LIBS |
| 10915 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10917 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 10918 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10919 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10920 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10921 | |
| 10922 | fi |
| 10923 | |
| 10924 | fi |
Theodore Ts'o | 3b802e4 | 2012-05-28 10:38:06 -0400 | [diff] [blame] | 10925 | for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10926 | do : |
| 10927 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10928 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10929 | eval as_val=\$$as_ac_var |
| 10930 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10931 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10932 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10933 | _ACEOF |
| 10934 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10935 | fi |
| 10936 | done |
| 10937 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10938 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10940 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10941 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10942 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10943 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10944 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10945 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10946 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10947 | /* end confdefs.h. */ |
| 10948 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10949 | /* Override any GCC internal prototype to avoid an error. |
| 10950 | Use char because int might match the return type of a GCC |
| 10951 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10952 | #ifdef __cplusplus |
| 10953 | extern "C" |
| 10954 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10955 | char socket (); |
| 10956 | int |
| 10957 | main () |
| 10958 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10959 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10960 | ; |
| 10961 | return 0; |
| 10962 | } |
| 10963 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10964 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10965 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10966 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10967 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10968 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10969 | rm -f core conftest.err conftest.$ac_objext \ |
| 10970 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10971 | LIBS=$ac_check_lib_save_LIBS |
| 10972 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10974 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10975 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10976 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10977 | fi |
| 10978 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10979 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10981 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10982 | if test "${ac_cv_have_optreset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10983 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10984 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10986 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10987 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10988 | |
| 10989 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10991 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10992 | ac_cv_have_optreset=yes |
| 10993 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10994 | ac_cv_have_optreset=no |
| 10995 | fi |
| 10996 | rm -f conftest* |
| 10997 | |
| 10998 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11000 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11001 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11002 | |
| 11003 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11004 | |
| 11005 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11006 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11007 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11008 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
| 11009 | if test "x$ac_cv_func_sem_init" = x""yes; then : |
| 11010 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11011 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11013 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11014 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11016 | else |
| 11017 | ac_check_lib_save_LIBS=$LIBS |
| 11018 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11020 | /* end confdefs.h. */ |
| 11021 | |
| 11022 | /* Override any GCC internal prototype to avoid an error. |
| 11023 | Use char because int might match the return type of a GCC |
| 11024 | builtin and then its argument prototype would still apply. */ |
| 11025 | #ifdef __cplusplus |
| 11026 | extern "C" |
| 11027 | #endif |
| 11028 | char sem_init (); |
| 11029 | int |
| 11030 | main () |
| 11031 | { |
| 11032 | return sem_init (); |
| 11033 | ; |
| 11034 | return 0; |
| 11035 | } |
| 11036 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11037 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11038 | ac_cv_lib_pthread_sem_init=yes |
| 11039 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11040 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11041 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11042 | rm -f core conftest.err conftest.$ac_objext \ |
| 11043 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11044 | LIBS=$ac_check_lib_save_LIBS |
| 11045 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11047 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11048 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : |
| 11049 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11050 | |
| 11051 | SEM_INIT_LIB=-lpthread |
| 11052 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11054 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11055 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11056 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11057 | else |
| 11058 | ac_check_lib_save_LIBS=$LIBS |
| 11059 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11061 | /* end confdefs.h. */ |
| 11062 | |
| 11063 | /* Override any GCC internal prototype to avoid an error. |
| 11064 | Use char because int might match the return type of a GCC |
| 11065 | builtin and then its argument prototype would still apply. */ |
| 11066 | #ifdef __cplusplus |
| 11067 | extern "C" |
| 11068 | #endif |
| 11069 | char sem_init (); |
| 11070 | int |
| 11071 | main () |
| 11072 | { |
| 11073 | return sem_init (); |
| 11074 | ; |
| 11075 | return 0; |
| 11076 | } |
| 11077 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11078 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11079 | ac_cv_lib_rt_sem_init=yes |
| 11080 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11081 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11082 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11083 | rm -f core conftest.err conftest.$ac_objext \ |
| 11084 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11085 | LIBS=$ac_check_lib_save_LIBS |
| 11086 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11088 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11089 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : |
| 11090 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11091 | |
| 11092 | SEM_INIT_LIB=-lrt |
| 11093 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11095 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11096 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11097 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11098 | else |
| 11099 | ac_check_lib_save_LIBS=$LIBS |
| 11100 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11102 | /* end confdefs.h. */ |
| 11103 | |
| 11104 | /* Override any GCC internal prototype to avoid an error. |
| 11105 | Use char because int might match the return type of a GCC |
| 11106 | builtin and then its argument prototype would still apply. */ |
| 11107 | #ifdef __cplusplus |
| 11108 | extern "C" |
| 11109 | #endif |
| 11110 | char sem_init (); |
| 11111 | int |
| 11112 | main () |
| 11113 | { |
| 11114 | return sem_init (); |
| 11115 | ; |
| 11116 | return 0; |
| 11117 | } |
| 11118 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11119 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11120 | ac_cv_lib_posix4_sem_init=yes |
| 11121 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11122 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11123 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11124 | rm -f core conftest.err conftest.$ac_objext \ |
| 11125 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11126 | LIBS=$ac_check_lib_save_LIBS |
| 11127 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11129 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11130 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : |
| 11131 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11132 | |
| 11133 | SEM_INIT_LIB=-lposix4 |
| 11134 | fi |
| 11135 | |
| 11136 | fi |
| 11137 | |
| 11138 | fi |
| 11139 | |
| 11140 | fi |
| 11141 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11143 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11144 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11145 | UNI_DIFF_OPTS=-u |
| 11146 | else |
| 11147 | UNI_DIFF_OPTS=-c |
| 11148 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11150 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11151 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11152 | case "$host_os" in |
| 11153 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11154 | |
| 11155 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11156 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11157 | ;; |
| 11158 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11159 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11160 | CYGWIN_CMT="#" |
| 11161 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11162 | case "$host_os" in |
| 11163 | linux*) |
| 11164 | LINUX_CMT= |
| 11165 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11166 | cygwin) |
| 11167 | CYGWIN_CMT= |
| 11168 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11169 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11170 | esac |
| 11171 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11172 | |
| 11173 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11174 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11175 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11176 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11177 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11179 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11180 | fi |
| 11181 | ;; |
| 11182 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11183 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11184 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11185 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11186 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11188 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11189 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11191 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11192 | mandir=/usr/share/man |
| 11193 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11194 | fi |
| 11195 | ;; |
| 11196 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11197 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11198 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11199 | root_prefix="$ac_default_prefix" |
| 11200 | else |
| 11201 | root_prefix="$prefix" |
| 11202 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11203 | root_bindir=$bindir |
| 11204 | root_sbindir=$sbindir |
| 11205 | root_libdir=$libdir |
| 11206 | root_sysconfdir=$sysconfdir |
| 11207 | else |
| 11208 | root_bindir='${root_prefix}/bin' |
| 11209 | root_sbindir='${root_prefix}/sbin' |
| 11210 | root_libdir='${root_prefix}/lib' |
| 11211 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11212 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11213 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11214 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11216 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11217 | fi |
| 11218 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11219 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11221 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11222 | fi |
| 11223 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11224 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11226 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11227 | fi |
| 11228 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11229 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11231 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11232 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11233 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11234 | |
| 11235 | |
| 11236 | |
| 11237 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 11238 | |
| 11239 | # Check whether --with-multiarch was given. |
| 11240 | if test "${with_multiarch+set}" = set; then : |
| 11241 | withval=$with_multiarch; libdir=$libdir/$withval |
| 11242 | root_libdir=$root_libdir/$withval |
| 11243 | |
| 11244 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11246 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11247 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11248 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11249 | else |
| 11250 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11252 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11253 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11254 | int |
| 11255 | main () |
| 11256 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11257 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11258 | ; |
| 11259 | return 0; |
| 11260 | } |
| 11261 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11262 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11263 | ac_cv_e2fsprogs_use_static=yes |
| 11264 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11265 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11266 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11267 | rm -f core conftest.err conftest.$ac_objext \ |
| 11268 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11269 | LDFLAGS=$SAVE_LDFLAGS |
| 11270 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11271 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11272 | case "$host_os" in |
| 11273 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11274 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11275 | ;; |
| 11276 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11278 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11279 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11280 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11281 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11282 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11283 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11284 | case "$host_os" in |
| 11285 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11287 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11288 | |
| 11289 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11290 | |
| 11291 | ;; |
| 11292 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11293 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11294 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11295 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11296 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11297 | if test "$cross_compiling" = yes ; then |
| 11298 | DO_TEST_SUITE= |
| 11299 | else |
| 11300 | DO_TEST_SUITE=check |
| 11301 | fi |
| 11302 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11303 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 11304 | if test -n "$CPPFLAGS" ; then |
| 11305 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 11306 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11307 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11308 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11309 | fi |
| 11310 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11311 | if test $cross_compiling = no; then |
Theodore Ts'o | c1986ec | 2012-06-13 15:29:13 -0400 | [diff] [blame^] | 11312 | BUILD_CFLAGS="$CFLAGS $CPPFLAGS" |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11313 | BUILD_LDFLAGS="$LDFLAGS" |
| 11314 | else |
| 11315 | BUILD_CFLAGS= |
| 11316 | BUILD_LDFLAGS= |
| 11317 | fi |
| 11318 | |
| 11319 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11320 | test -d lib || mkdir lib |
| 11321 | test -d include || mkdir include |
| 11322 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11323 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11324 | for i in MCONFIG Makefile e2fsprogs.spec \ |
Theodore Ts'o | 183c73b | 2012-05-12 23:13:24 -0400 | [diff] [blame] | 11325 | util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11326 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11327 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11328 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 11329 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11330 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11331 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 11332 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11333 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11334 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11335 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11336 | if test -d `dirname ${srcdir}/$i` ; then |
| 11337 | outlist="$outlist $i" |
| 11338 | fi |
| 11339 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11340 | ac_config_files="$ac_config_files $outlist" |
| 11341 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11342 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11343 | # This file is a shell script that caches the results of configure |
| 11344 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11345 | # scripts and configure runs, see configure's option --config-cache. |
| 11346 | # It is not useful on other systems. If it contains results you don't |
| 11347 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11348 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11349 | # config.status only pays attention to the cache file if you give it |
| 11350 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11351 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11352 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11353 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11354 | # following values. |
| 11355 | |
| 11356 | _ACEOF |
| 11357 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11358 | # The following way of writing the cache mishandles newlines in values, |
| 11359 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11360 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11361 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11362 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11363 | ( |
| 11364 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11365 | eval ac_val=\$$ac_var |
| 11366 | case $ac_val in #( |
| 11367 | *${as_nl}*) |
| 11368 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11369 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11370 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11371 | esac |
| 11372 | case $ac_var in #( |
| 11373 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11374 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11375 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11376 | esac ;; |
| 11377 | esac |
| 11378 | done |
| 11379 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11380 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11381 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11382 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11383 | # `set' does not quote correctly, so add quotes: double-quote |
| 11384 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11385 | sed -n \ |
| 11386 | "s/'/'\\\\''/g; |
| 11387 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11388 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11389 | *) |
| 11390 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11391 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11392 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11393 | esac | |
| 11394 | sort |
| 11395 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11396 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11397 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11398 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11399 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11400 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11401 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11402 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11403 | :end' >>confcache |
| 11404 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11405 | if test -w "$cache_file"; then |
| 11406 | test "x$cache_file" != "x/dev/null" && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11407 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11408 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11409 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11410 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11411 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11412 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11413 | fi |
| 11414 | fi |
| 11415 | rm -f confcache |
| 11416 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11417 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11418 | # Let make expand exec_prefix. |
| 11419 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11420 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11421 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11422 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11423 | ac_libobjs= |
| 11424 | ac_ltlibobjs= |
| 11425 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11426 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11427 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11428 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11429 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11430 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11431 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11432 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11433 | done |
| 11434 | LIBOBJS=$ac_libobjs |
| 11435 | |
| 11436 | LTLIBOBJS=$ac_ltlibobjs |
| 11437 | |
| 11438 | |
| 11439 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11440 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11441 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11442 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11443 | ac_clean_files_save=$ac_clean_files |
| 11444 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11445 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11446 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11447 | as_write_fail=0 |
| 11448 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11449 | #! $SHELL |
| 11450 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11451 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11452 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11453 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11454 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | debug=false |
| 11456 | ac_cs_recheck=false |
| 11457 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11458 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11459 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11460 | export SHELL |
| 11461 | _ASEOF |
| 11462 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11463 | ## -------------------- ## |
| 11464 | ## M4sh Initialization. ## |
| 11465 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11466 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11467 | # Be more Bourne compatible |
| 11468 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11469 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11470 | emulate sh |
| 11471 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11472 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11473 | # is contrary to our usage. Disable this feature. |
| 11474 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11475 | setopt NO_GLOB_SUBST |
| 11476 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11477 | case `(set -o) 2>/dev/null` in #( |
| 11478 | *posix*) : |
| 11479 | set -o posix ;; #( |
| 11480 | *) : |
| 11481 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11482 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11483 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11484 | |
| 11485 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11486 | as_nl=' |
| 11487 | ' |
| 11488 | export as_nl |
| 11489 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11490 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11491 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11492 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11493 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11494 | # but without wasting forks for bash or zsh. |
| 11495 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11496 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11497 | as_echo='print -r --' |
| 11498 | as_echo_n='print -rn --' |
| 11499 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11500 | as_echo='printf %s\n' |
| 11501 | as_echo_n='printf %s' |
| 11502 | else |
| 11503 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11504 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11505 | as_echo_n='/usr/ucb/echo -n' |
| 11506 | else |
| 11507 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11508 | as_echo_n_body='eval |
| 11509 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11510 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11511 | *"$as_nl"*) |
| 11512 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11513 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11514 | esac; |
| 11515 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11516 | ' |
| 11517 | export as_echo_n_body |
| 11518 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11519 | fi |
| 11520 | export as_echo_body |
| 11521 | as_echo='sh -c $as_echo_body as_echo' |
| 11522 | fi |
| 11523 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11524 | # The user is always right. |
| 11525 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11526 | PATH_SEPARATOR=: |
| 11527 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11528 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11529 | PATH_SEPARATOR=';' |
| 11530 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11531 | fi |
| 11532 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11533 | |
| 11534 | # IFS |
| 11535 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11536 | # there to prevent editors from complaining about space-tab. |
| 11537 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11538 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11539 | IFS=" "" $as_nl" |
| 11540 | |
| 11541 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11542 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11543 | *[\\/]* ) as_myself=$0 ;; |
| 11544 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11545 | for as_dir in $PATH |
| 11546 | do |
| 11547 | IFS=$as_save_IFS |
| 11548 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11549 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11550 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11551 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11552 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11553 | ;; |
| 11554 | esac |
| 11555 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11556 | # in which case we are not to be found in the path. |
| 11557 | if test "x$as_myself" = x; then |
| 11558 | as_myself=$0 |
| 11559 | fi |
| 11560 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11561 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11562 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11563 | fi |
| 11564 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11565 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11566 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11567 | # suppresses any "Segmentation fault" message there. '((' could |
| 11568 | # trigger a bug in pdksh 5.2.14. |
| 11569 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11570 | do eval test x\${$as_var+set} = xset \ |
| 11571 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11572 | done |
| 11573 | PS1='$ ' |
| 11574 | PS2='> ' |
| 11575 | PS4='+ ' |
| 11576 | |
| 11577 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11578 | LC_ALL=C |
| 11579 | export LC_ALL |
| 11580 | LANGUAGE=C |
| 11581 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11582 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11583 | # CDPATH. |
| 11584 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11585 | |
| 11586 | |
| 11587 | # as_fn_error ERROR [LINENO LOG_FD] |
| 11588 | # --------------------------------- |
| 11589 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11590 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11591 | # script with status $?, using 1 if that was 0. |
| 11592 | as_fn_error () |
| 11593 | { |
| 11594 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 11595 | if test "$3"; then |
| 11596 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11597 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 11598 | fi |
| 11599 | $as_echo "$as_me: error: $1" >&2 |
| 11600 | as_fn_exit $as_status |
| 11601 | } # as_fn_error |
| 11602 | |
| 11603 | |
| 11604 | # as_fn_set_status STATUS |
| 11605 | # ----------------------- |
| 11606 | # Set $? to STATUS, without forking. |
| 11607 | as_fn_set_status () |
| 11608 | { |
| 11609 | return $1 |
| 11610 | } # as_fn_set_status |
| 11611 | |
| 11612 | # as_fn_exit STATUS |
| 11613 | # ----------------- |
| 11614 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11615 | as_fn_exit () |
| 11616 | { |
| 11617 | set +e |
| 11618 | as_fn_set_status $1 |
| 11619 | exit $1 |
| 11620 | } # as_fn_exit |
| 11621 | |
| 11622 | # as_fn_unset VAR |
| 11623 | # --------------- |
| 11624 | # Portably unset VAR. |
| 11625 | as_fn_unset () |
| 11626 | { |
| 11627 | { eval $1=; unset $1;} |
| 11628 | } |
| 11629 | as_unset=as_fn_unset |
| 11630 | # as_fn_append VAR VALUE |
| 11631 | # ---------------------- |
| 11632 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11633 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11634 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11635 | # implementations. |
| 11636 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11637 | eval 'as_fn_append () |
| 11638 | { |
| 11639 | eval $1+=\$2 |
| 11640 | }' |
| 11641 | else |
| 11642 | as_fn_append () |
| 11643 | { |
| 11644 | eval $1=\$$1\$2 |
| 11645 | } |
| 11646 | fi # as_fn_append |
| 11647 | |
| 11648 | # as_fn_arith ARG... |
| 11649 | # ------------------ |
| 11650 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11651 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11652 | # must be portable across $(()) and expr. |
| 11653 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11654 | eval 'as_fn_arith () |
| 11655 | { |
| 11656 | as_val=$(( $* )) |
| 11657 | }' |
| 11658 | else |
| 11659 | as_fn_arith () |
| 11660 | { |
| 11661 | as_val=`expr "$@" || test $? -eq 1` |
| 11662 | } |
| 11663 | fi # as_fn_arith |
| 11664 | |
| 11665 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11666 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11667 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11668 | as_expr=expr |
| 11669 | else |
| 11670 | as_expr=false |
| 11671 | fi |
| 11672 | |
| 11673 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11674 | as_basename=basename |
| 11675 | else |
| 11676 | as_basename=false |
| 11677 | fi |
| 11678 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11679 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11680 | as_dirname=dirname |
| 11681 | else |
| 11682 | as_dirname=false |
| 11683 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11684 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11685 | as_me=`$as_basename -- "$0" || |
| 11686 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11687 | X"$0" : 'X\(//\)$' \| \ |
| 11688 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11689 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11690 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11691 | s//\1/ |
| 11692 | q |
| 11693 | } |
| 11694 | /^X\/\(\/\/\)$/{ |
| 11695 | s//\1/ |
| 11696 | q |
| 11697 | } |
| 11698 | /^X\/\(\/\).*/{ |
| 11699 | s//\1/ |
| 11700 | q |
| 11701 | } |
| 11702 | s/.*/./; q'` |
| 11703 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11704 | # Avoid depending upon Character Ranges. |
| 11705 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11706 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11707 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11708 | as_cr_digits='0123456789' |
| 11709 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11710 | |
| 11711 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11712 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11713 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11714 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11715 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11716 | xy) ECHO_C='\c';; |
| 11717 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11718 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11719 | esac;; |
| 11720 | *) |
| 11721 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11722 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11723 | |
| 11724 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11725 | if test -d conf$$.dir; then |
| 11726 | rm -f conf$$.dir/conf$$.file |
| 11727 | else |
| 11728 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11729 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11730 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11731 | if (echo >conf$$.file) 2>/dev/null; then |
| 11732 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11733 | as_ln_s='ln -s' |
| 11734 | # ... but there are two gotchas: |
| 11735 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11736 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11737 | # In both cases, we have to default to `cp -p'. |
| 11738 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 11739 | as_ln_s='cp -p' |
| 11740 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11741 | as_ln_s=ln |
| 11742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11743 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11744 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11745 | else |
| 11746 | as_ln_s='cp -p' |
| 11747 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11748 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11749 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11750 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11751 | |
| 11752 | # as_fn_mkdir_p |
| 11753 | # ------------- |
| 11754 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11755 | as_fn_mkdir_p () |
| 11756 | { |
| 11757 | |
| 11758 | case $as_dir in #( |
| 11759 | -*) as_dir=./$as_dir;; |
| 11760 | esac |
| 11761 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11762 | as_dirs= |
| 11763 | while :; do |
| 11764 | case $as_dir in #( |
| 11765 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11766 | *) as_qdir=$as_dir;; |
| 11767 | esac |
| 11768 | as_dirs="'$as_qdir' $as_dirs" |
| 11769 | as_dir=`$as_dirname -- "$as_dir" || |
| 11770 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11771 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11772 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11773 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11774 | $as_echo X"$as_dir" | |
| 11775 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11776 | s//\1/ |
| 11777 | q |
| 11778 | } |
| 11779 | /^X\(\/\/\)[^/].*/{ |
| 11780 | s//\1/ |
| 11781 | q |
| 11782 | } |
| 11783 | /^X\(\/\/\)$/{ |
| 11784 | s//\1/ |
| 11785 | q |
| 11786 | } |
| 11787 | /^X\(\/\).*/{ |
| 11788 | s//\1/ |
| 11789 | q |
| 11790 | } |
| 11791 | s/.*/./; q'` |
| 11792 | test -d "$as_dir" && break |
| 11793 | done |
| 11794 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11795 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 11796 | |
| 11797 | |
| 11798 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11799 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11800 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11801 | else |
| 11802 | test -d ./-p && rmdir ./-p |
| 11803 | as_mkdir_p=false |
| 11804 | fi |
| 11805 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11806 | if test -x / >/dev/null 2>&1; then |
| 11807 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11808 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11809 | if ls -dL / >/dev/null 2>&1; then |
| 11810 | as_ls_L_option=L |
| 11811 | else |
| 11812 | as_ls_L_option= |
| 11813 | fi |
| 11814 | as_test_x=' |
| 11815 | eval sh -c '\'' |
| 11816 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11817 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11818 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11819 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11820 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11821 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11822 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11823 | ???[sx]*):;;*)false;;esac;fi |
| 11824 | '\'' sh |
| 11825 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11826 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11827 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11828 | |
| 11829 | # Sed expression to map a string onto a valid CPP name. |
| 11830 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11831 | |
| 11832 | # Sed expression to map a string onto a valid variable name. |
| 11833 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11834 | |
| 11835 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11836 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11837 | ## ----------------------------------- ## |
| 11838 | ## Main body of $CONFIG_STATUS script. ## |
| 11839 | ## ----------------------------------- ## |
| 11840 | _ASEOF |
| 11841 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11842 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11843 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11844 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11845 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11846 | # values after options handling. |
| 11847 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11848 | This file was extended by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11849 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11850 | |
| 11851 | CONFIG_FILES = $CONFIG_FILES |
| 11852 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11853 | CONFIG_LINKS = $CONFIG_LINKS |
| 11854 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11855 | $ $0 $@ |
| 11856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11857 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11858 | " |
| 11859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11860 | _ACEOF |
| 11861 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11862 | case $ac_config_files in *" |
| 11863 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11864 | esac |
| 11865 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11866 | case $ac_config_headers in *" |
| 11867 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 11868 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11869 | |
| 11870 | |
| 11871 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11872 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11873 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11874 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11875 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11876 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11877 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11878 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11879 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11880 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11881 | \`$as_me' instantiates files and other configuration actions |
| 11882 | from templates according to the current configuration. Unless the files |
| 11883 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11884 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11885 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11886 | |
| 11887 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11888 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11889 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11890 | -q, --quiet, --silent |
| 11891 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11892 | -d, --debug don't remove temporary files |
| 11893 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11894 | --file=FILE[:TEMPLATE] |
| 11895 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11896 | --header=FILE[:TEMPLATE] |
| 11897 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11898 | |
| 11899 | Configuration files: |
| 11900 | $config_files |
| 11901 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11902 | Configuration headers: |
| 11903 | $config_headers |
| 11904 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11905 | Configuration commands: |
| 11906 | $config_commands |
| 11907 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11908 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11910 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11911 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11912 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11913 | ac_cs_version="\\ |
| 11914 | config.status |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11915 | configured by $0, generated by GNU Autoconf 2.65, |
| 11916 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11917 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11918 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11919 | This config.status script is free software; the Free Software Foundation |
| 11920 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11921 | |
| 11922 | ac_pwd='$ac_pwd' |
| 11923 | srcdir='$srcdir' |
| 11924 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11925 | AWK='$AWK' |
| 11926 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11927 | _ACEOF |
| 11928 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11929 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11930 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11931 | ac_need_defaults=: |
| 11932 | while test $# != 0 |
| 11933 | do |
| 11934 | case $1 in |
| 11935 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11936 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11937 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11938 | ac_shift=: |
| 11939 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11940 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11941 | ac_option=$1 |
| 11942 | ac_optarg=$2 |
| 11943 | ac_shift=shift |
| 11944 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11945 | esac |
| 11946 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11947 | case $ac_option in |
| 11948 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11949 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11950 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11951 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11952 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11953 | --config | --confi | --conf | --con | --co | --c ) |
| 11954 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11955 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11956 | debug=: ;; |
| 11957 | --file | --fil | --fi | --f ) |
| 11958 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11959 | case $ac_optarg in |
| 11960 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11961 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11962 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11963 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11964 | --header | --heade | --head | --hea ) |
| 11965 | $ac_shift |
| 11966 | case $ac_optarg in |
| 11967 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11968 | esac |
| 11969 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 11970 | ac_need_defaults=false;; |
| 11971 | --he | --h) |
| 11972 | # Conflict between --help and --header |
| 11973 | as_fn_error "ambiguous option: \`$1' |
| 11974 | Try \`$0 --help' for more information.";; |
| 11975 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11976 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11977 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11978 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11979 | ac_cs_silent=: ;; |
| 11980 | |
| 11981 | # This is an error. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11982 | -*) as_fn_error "unrecognized option: \`$1' |
| 11983 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11984 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11985 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11986 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11987 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11988 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11989 | shift |
| 11990 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11991 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11992 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11993 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11994 | if $ac_cs_silent; then |
| 11995 | exec 6>/dev/null |
| 11996 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11997 | fi |
| 11998 | |
| 11999 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12000 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12001 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12002 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 12003 | shift |
| 12004 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 12005 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12006 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12007 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12008 | fi |
| 12009 | |
| 12010 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12011 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12012 | exec 5>>config.log |
| 12013 | { |
| 12014 | echo |
| 12015 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 12016 | ## Running $as_me. ## |
| 12017 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12018 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12019 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12021 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12022 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12024 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12025 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12026 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12027 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12028 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12029 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12030 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12031 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12032 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12034 | _ACEOF |
| 12035 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12036 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12037 | |
| 12038 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12039 | for ac_config_target in $ac_config_targets |
| 12040 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12041 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12042 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12043 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12044 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12045 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12046 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12047 | esac |
| 12048 | done |
| 12049 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12050 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12051 | # If the user did not use the arguments to specify the items to instantiate, |
| 12052 | # then the envvar interface is used. Set only those that are not. |
| 12053 | # We use the long form for the default assignment because of an extremely |
| 12054 | # bizarre bug on SunOS 4.1.3. |
| 12055 | if $ac_need_defaults; then |
| 12056 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12057 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12058 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12059 | fi |
| 12060 | |
| 12061 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12062 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12063 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12064 | # Hook for its removal unless debugging. |
| 12065 | # Note that there is a small window in which the directory will not be cleaned: |
| 12066 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12067 | $debug || |
| 12068 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12069 | tmp= |
| 12070 | trap 'exit_status=$? |
| 12071 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 12072 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12073 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12074 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12075 | # Create a (secure) tmp directory for tmp files. |
| 12076 | |
| 12077 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12078 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12079 | test -n "$tmp" && test -d "$tmp" |
| 12080 | } || |
| 12081 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12082 | tmp=./conf$$-$RANDOM |
| 12083 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12084 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12085 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12086 | # Set up the scripts for CONFIG_FILES section. |
| 12087 | # No need to generate them if there are no CONFIG_FILES. |
| 12088 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12089 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12090 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12091 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12092 | ac_cs_awk_getline=: |
| 12093 | ac_cs_awk_pipe_init= |
| 12094 | ac_cs_awk_read_file=' |
| 12095 | while ((getline aline < (F[key])) > 0) |
| 12096 | print(aline) |
| 12097 | close(F[key])' |
| 12098 | ac_cs_awk_pipe_fini= |
| 12099 | else |
| 12100 | ac_cs_awk_getline=false |
| 12101 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12102 | ac_cs_awk_read_file=' |
| 12103 | print "|#_!!_#|" |
| 12104 | print "cat " F[key] " &&" |
| 12105 | '$ac_cs_awk_pipe_init |
| 12106 | # The final `:' finishes the AND list. |
| 12107 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12108 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12109 | ac_cr=`echo X | tr X '\015'` |
| 12110 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12111 | # But we know of no other shell where ac_cr would be empty at this |
| 12112 | # point, so we can use a bashism as a fallback. |
| 12113 | if test "x$ac_cr" = x; then |
| 12114 | eval ac_cr=\$\'\\r\' |
| 12115 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12116 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12117 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12118 | ac_cs_awk_cr='\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12119 | else |
| 12120 | ac_cs_awk_cr=$ac_cr |
| 12121 | fi |
| 12122 | |
| 12123 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12124 | _ACEOF |
| 12125 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12126 | # Create commands to substitute file output variables. |
| 12127 | { |
| 12128 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 12129 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 12130 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12131 | echo "_ACAWK" && |
| 12132 | echo "_ACEOF" |
| 12133 | } >conf$$files.sh && |
| 12134 | . ./conf$$files.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12135 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12136 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12137 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12138 | { |
| 12139 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12140 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12141 | echo "_ACEOF" |
| 12142 | } >conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12143 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12144 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12145 | ac_delim='%!_!# ' |
| 12146 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12147 | . ./conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12148 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12149 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12150 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12151 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12152 | break |
| 12153 | elif $ac_last_try; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12154 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12155 | else |
| 12156 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12157 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12158 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12159 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12160 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12161 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12162 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12163 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12164 | sed -n ' |
| 12165 | h |
| 12166 | s/^/S["/; s/!.*/"]=/ |
| 12167 | p |
| 12168 | g |
| 12169 | s/^[^!]*!// |
| 12170 | :repl |
| 12171 | t repl |
| 12172 | s/'"$ac_delim"'$// |
| 12173 | t delim |
| 12174 | :nl |
| 12175 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12176 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12177 | t more1 |
| 12178 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12179 | p |
| 12180 | n |
| 12181 | b repl |
| 12182 | :more1 |
| 12183 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12184 | p |
| 12185 | g |
| 12186 | s/.\{148\}// |
| 12187 | t nl |
| 12188 | :delim |
| 12189 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12190 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12191 | t more2 |
| 12192 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12193 | p |
| 12194 | b |
| 12195 | :more2 |
| 12196 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12197 | p |
| 12198 | g |
| 12199 | s/.\{148\}// |
| 12200 | t delim |
| 12201 | ' <conf$$subs.awk | sed ' |
| 12202 | /^[^""]/{ |
| 12203 | N |
| 12204 | s/\n// |
| 12205 | } |
| 12206 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12207 | rm -f conf$$subs.awk |
| 12208 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12209 | _ACAWK |
| 12210 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 12211 | for (key in S) S_is_set[key] = 1 |
| 12212 | FS = "" |
| 12213 | \$ac_cs_awk_pipe_init |
| 12214 | } |
| 12215 | { |
| 12216 | line = $ 0 |
| 12217 | nfields = split(line, field, "@") |
| 12218 | substed = 0 |
| 12219 | len = length(field[1]) |
| 12220 | for (i = 2; i < nfields; i++) { |
| 12221 | key = field[i] |
| 12222 | keylen = length(key) |
| 12223 | if (S_is_set[key]) { |
| 12224 | value = S[key] |
| 12225 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12226 | len += length(value) + length(field[++i]) |
| 12227 | substed = 1 |
| 12228 | } else |
| 12229 | len += 1 + keylen |
| 12230 | } |
| 12231 | if (nfields == 3 && !substed) { |
| 12232 | key = field[2] |
| 12233 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12234 | \$ac_cs_awk_read_file |
| 12235 | next |
| 12236 | } |
| 12237 | } |
| 12238 | print line |
| 12239 | } |
| 12240 | \$ac_cs_awk_pipe_fini |
| 12241 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12242 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12244 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12245 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12246 | else |
| 12247 | cat |
| 12248 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12249 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12250 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12251 | |
| 12252 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12253 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12254 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12255 | # (actually we leave an empty line to preserve line numbers). |
| 12256 | if test "x$srcdir" = x.; then |
| 12257 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12258 | s/:*\$(srcdir):*/:/ |
| 12259 | s/:*\${srcdir}:*/:/ |
| 12260 | s/:*@srcdir@:*/:/ |
| 12261 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12262 | s/:*$// |
| 12263 | s/^[^=]*=[ ]*$// |
| 12264 | }' |
| 12265 | fi |
| 12266 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12267 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12268 | fi # test -n "$CONFIG_FILES" |
| 12269 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12270 | # Set up the scripts for CONFIG_HEADERS section. |
| 12271 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12272 | # This happens for instance with `./config.status Makefile'. |
| 12273 | if test -n "$CONFIG_HEADERS"; then |
| 12274 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 12275 | BEGIN { |
| 12276 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12277 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12278 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12279 | # here-document in config.status, that substitutes the proper values into |
| 12280 | # config.h.in to produce config.h. |
| 12281 | |
| 12282 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12283 | # handling of long lines. |
| 12284 | ac_delim='%!_!# ' |
| 12285 | for ac_last_try in false false :; do |
| 12286 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 12287 | if test -z "$ac_t"; then |
| 12288 | break |
| 12289 | elif $ac_last_try; then |
| 12290 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 12291 | else |
| 12292 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12293 | fi |
| 12294 | done |
| 12295 | |
| 12296 | # For the awk script, D is an array of macro values keyed by name, |
| 12297 | # likewise P contains macro parameters if any. Preserve backslash |
| 12298 | # newline sequences. |
| 12299 | |
| 12300 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12301 | sed -n ' |
| 12302 | s/.\{148\}/&'"$ac_delim"'/g |
| 12303 | t rset |
| 12304 | :rset |
| 12305 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12306 | t def |
| 12307 | d |
| 12308 | :def |
| 12309 | s/\\$// |
| 12310 | t bsnl |
| 12311 | s/["\\]/\\&/g |
| 12312 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12313 | D["\1"]=" \3"/p |
| 12314 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12315 | d |
| 12316 | :bsnl |
| 12317 | s/["\\]/\\&/g |
| 12318 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12319 | D["\1"]=" \3\\\\\\n"\\/p |
| 12320 | t cont |
| 12321 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12322 | t cont |
| 12323 | d |
| 12324 | :cont |
| 12325 | n |
| 12326 | s/.\{148\}/&'"$ac_delim"'/g |
| 12327 | t clear |
| 12328 | :clear |
| 12329 | s/\\$// |
| 12330 | t bsnlc |
| 12331 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12332 | d |
| 12333 | :bsnlc |
| 12334 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12335 | b cont |
| 12336 | ' <confdefs.h | sed ' |
| 12337 | s/'"$ac_delim"'/"\\\ |
| 12338 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12339 | |
| 12340 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12341 | for (key in D) D_is_set[key] = 1 |
| 12342 | FS = "" |
| 12343 | } |
| 12344 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12345 | line = \$ 0 |
| 12346 | split(line, arg, " ") |
| 12347 | if (arg[1] == "#") { |
| 12348 | defundef = arg[2] |
| 12349 | mac1 = arg[3] |
| 12350 | } else { |
| 12351 | defundef = substr(arg[1], 2) |
| 12352 | mac1 = arg[2] |
| 12353 | } |
| 12354 | split(mac1, mac2, "(") #) |
| 12355 | macro = mac2[1] |
| 12356 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12357 | if (D_is_set[macro]) { |
| 12358 | # Preserve the white space surrounding the "#". |
| 12359 | print prefix "define", macro P[macro] D[macro] |
| 12360 | next |
| 12361 | } else { |
| 12362 | # Replace #undef with comments. This is necessary, for example, |
| 12363 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12364 | # on some systems where configure will not decide to define it. |
| 12365 | if (defundef == "undef") { |
| 12366 | print "/*", prefix defundef, macro, "*/" |
| 12367 | next |
| 12368 | } |
| 12369 | } |
| 12370 | } |
| 12371 | { print } |
| 12372 | _ACAWK |
| 12373 | _ACEOF |
| 12374 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12375 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 12376 | fi # test -n "$CONFIG_HEADERS" |
| 12377 | |
| 12378 | |
| 12379 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12380 | shift |
| 12381 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12382 | do |
| 12383 | case $ac_tag in |
| 12384 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12385 | esac |
| 12386 | case $ac_mode$ac_tag in |
| 12387 | :[FHL]*:*);; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12388 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12389 | :[FH]-) ac_tag=-:-;; |
| 12390 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12391 | esac |
| 12392 | ac_save_IFS=$IFS |
| 12393 | IFS=: |
| 12394 | set x $ac_tag |
| 12395 | IFS=$ac_save_IFS |
| 12396 | shift |
| 12397 | ac_file=$1 |
| 12398 | shift |
| 12399 | |
| 12400 | case $ac_mode in |
| 12401 | :L) ac_source=$1;; |
| 12402 | :[FH]) |
| 12403 | ac_file_inputs= |
| 12404 | for ac_f |
| 12405 | do |
| 12406 | case $ac_f in |
| 12407 | -) ac_f="$tmp/stdin";; |
| 12408 | *) # Look for the file first in the build tree, then in the source tree |
| 12409 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12410 | # because $ac_f cannot contain `:'. |
| 12411 | test -f "$ac_f" || |
| 12412 | case $ac_f in |
| 12413 | [\\/$]*) false;; |
| 12414 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12415 | esac || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12416 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12417 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12418 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12419 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12420 | done |
| 12421 | |
| 12422 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12423 | # use $as_me), people would be surprised to read: |
| 12424 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12425 | configure_input='Generated from '` |
| 12426 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12427 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12428 | if test x"$ac_file" != x-; then |
| 12429 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12430 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12431 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12432 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12433 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12434 | case $configure_input in #( |
| 12435 | *\&* | *\|* | *\\* ) |
| 12436 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12437 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12438 | *) ac_sed_conf_input=$configure_input;; |
| 12439 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12440 | |
| 12441 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12442 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12443 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12444 | esac |
| 12445 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12446 | esac |
| 12447 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12448 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12449 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12450 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12451 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12452 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12453 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12454 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12455 | s//\1/ |
| 12456 | q |
| 12457 | } |
| 12458 | /^X\(\/\/\)[^/].*/{ |
| 12459 | s//\1/ |
| 12460 | q |
| 12461 | } |
| 12462 | /^X\(\/\/\)$/{ |
| 12463 | s//\1/ |
| 12464 | q |
| 12465 | } |
| 12466 | /^X\(\/\).*/{ |
| 12467 | s//\1/ |
| 12468 | q |
| 12469 | } |
| 12470 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12471 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12472 | ac_builddir=. |
| 12473 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12474 | case "$ac_dir" in |
| 12475 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12476 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12477 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12478 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12479 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12480 | case $ac_top_builddir_sub in |
| 12481 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12482 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12483 | esac ;; |
| 12484 | esac |
| 12485 | ac_abs_top_builddir=$ac_pwd |
| 12486 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12487 | # for backward compatibility: |
| 12488 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12489 | |
| 12490 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12491 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12492 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12493 | ac_top_srcdir=$ac_top_builddir_sub |
| 12494 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12495 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12496 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12497 | ac_top_srcdir=$srcdir |
| 12498 | ac_abs_top_srcdir=$srcdir ;; |
| 12499 | *) # Relative name. |
| 12500 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12501 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12502 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12503 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12504 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12505 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12506 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12507 | case $ac_mode in |
| 12508 | :F) |
| 12509 | # |
| 12510 | # CONFIG_FILE |
| 12511 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12512 | |
| 12513 | case $INSTALL in |
| 12514 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12515 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12516 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12517 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12518 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12520 | # If the template does not know about datarootdir, expand it. |
| 12521 | # FIXME: This hack should be removed a few years after 2.60. |
| 12522 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12523 | ac_sed_dataroot=' |
| 12524 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12525 | p |
| 12526 | q |
| 12527 | } |
| 12528 | /@datadir@/p |
| 12529 | /@docdir@/p |
| 12530 | /@infodir@/p |
| 12531 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12532 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12533 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12534 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12535 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12537 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12538 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12539 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12540 | ac_datarootdir_hack=' |
| 12541 | s&@datadir@&$datadir&g |
| 12542 | s&@docdir@&$docdir&g |
| 12543 | s&@infodir@&$infodir&g |
| 12544 | s&@localedir@&$localedir&g |
| 12545 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12546 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12547 | esac |
| 12548 | _ACEOF |
| 12549 | |
| 12550 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12551 | # Shell code in configure.ac might set extrasub. |
| 12552 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12553 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12554 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12555 | $extrasub |
| 12556 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12558 | :t |
| 12559 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12560 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12561 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12562 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12563 | s&@srcdir@&$ac_srcdir&;t t |
| 12564 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12565 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12566 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12567 | s&@builddir@&$ac_builddir&;t t |
| 12568 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12569 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12570 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12571 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12572 | " |
| 12573 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12574 | if $ac_cs_awk_getline; then |
| 12575 | $AWK -f "$tmp/subs.awk" |
| 12576 | else |
| 12577 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 12578 | fi >$tmp/out \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12579 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12581 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12582 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12583 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12585 | which seems to be undefined. Please make sure it is defined." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12586 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12587 | which seems to be undefined. Please make sure it is defined." >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12588 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12589 | rm -f "$tmp/stdin" |
| 12590 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12591 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 12592 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 12593 | esac \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12594 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12595 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12596 | :H) |
| 12597 | # |
| 12598 | # CONFIG_HEADER |
| 12599 | # |
| 12600 | if test x"$ac_file" != x-; then |
| 12601 | { |
| 12602 | $as_echo "/* $configure_input */" \ |
| 12603 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 12604 | } >"$tmp/config.h" \ |
| 12605 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 12606 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 12607 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12608 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 12609 | else |
| 12610 | rm -f "$ac_file" |
| 12611 | mv "$tmp/config.h" "$ac_file" \ |
| 12612 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 12613 | fi |
| 12614 | else |
| 12615 | $as_echo "/* $configure_input */" \ |
| 12616 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 12617 | || as_fn_error "could not create -" "$LINENO" 5 |
| 12618 | fi |
| 12619 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12620 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12621 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12622 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12623 | ;; |
| 12624 | esac |
| 12625 | |
| 12626 | |
| 12627 | case $ac_file$ac_mode in |
| 12628 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12629 | for ac_file in $CONFIG_FILES; do |
| 12630 | # Support "outfile[:infile[:infile...]]" |
| 12631 | case "$ac_file" in |
| 12632 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12633 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12634 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12635 | case "$ac_file" in */Makefile.in) |
| 12636 | # Adjust a relative srcdir. |
| 12637 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12638 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12639 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12640 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12641 | # In autoconf-2.50 it is called $srcdir. |
| 12642 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12643 | case "$ac_given_srcdir" in |
| 12644 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12645 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12646 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12647 | esac |
| 12648 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12649 | rm -f "$ac_dir/POTFILES" |
| 12650 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12651 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12652 | POMAKEFILEDEPS="POTFILES.in" |
| 12653 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12654 | # on $ac_dir but don't depend on user-specified configuration |
| 12655 | # parameters. |
| 12656 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12657 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12658 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12659 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12660 | fi |
| 12661 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12662 | # Hide the ALL_LINGUAS assigment from automake. |
| 12663 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12664 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12665 | else |
| 12666 | # The set of available languages was given in configure.in. |
| 12667 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12668 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12669 | # Compute POFILES |
| 12670 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12671 | # Compute UPDATEPOFILES |
| 12672 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12673 | # Compute DUMMYPOFILES |
| 12674 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12675 | # Compute GMOFILES |
| 12676 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12677 | case "$ac_given_srcdir" in |
| 12678 | .) srcdirpre= ;; |
| 12679 | *) srcdirpre='$(srcdir)/' ;; |
| 12680 | esac |
| 12681 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12682 | UPDATEPOFILES= |
| 12683 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12684 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12685 | for lang in $ALL_LINGUAS; do |
| 12686 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12687 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12688 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12689 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12690 | done |
| 12691 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12692 | # environment variable. |
| 12693 | INST_LINGUAS= |
| 12694 | if test -n "$ALL_LINGUAS"; then |
| 12695 | for presentlang in $ALL_LINGUAS; do |
| 12696 | useit=no |
| 12697 | if test "%UNSET%" != "$LINGUAS"; then |
| 12698 | desiredlanguages="$LINGUAS" |
| 12699 | else |
| 12700 | desiredlanguages="$ALL_LINGUAS" |
| 12701 | fi |
| 12702 | for desiredlang in $desiredlanguages; do |
| 12703 | # Use the presentlang catalog if desiredlang is |
| 12704 | # a. equal to presentlang, or |
| 12705 | # b. a variant of presentlang (because in this case, |
| 12706 | # presentlang can be used as a fallback for messages |
| 12707 | # which are not translated in the desiredlang catalog). |
| 12708 | case "$desiredlang" in |
| 12709 | "$presentlang"*) useit=yes;; |
| 12710 | esac |
| 12711 | done |
| 12712 | if test $useit = yes; then |
| 12713 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12714 | fi |
| 12715 | done |
| 12716 | fi |
| 12717 | CATALOGS= |
| 12718 | if test -n "$INST_LINGUAS"; then |
| 12719 | for lang in $INST_LINGUAS; do |
| 12720 | CATALOGS="$CATALOGS $lang.gmo" |
| 12721 | done |
| 12722 | fi |
| 12723 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12724 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12725 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12726 | if test -f "$f"; then |
| 12727 | case "$f" in |
| 12728 | *.orig | *.bak | *~) ;; |
| 12729 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12730 | esac |
| 12731 | fi |
| 12732 | done |
| 12733 | fi |
| 12734 | ;; |
| 12735 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12736 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12737 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12738 | esac |
| 12739 | done # for ac_tag |
| 12740 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12741 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12742 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12743 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12744 | ac_clean_files=$ac_clean_files_save |
| 12745 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12746 | test $ac_write_fail = 0 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12747 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12748 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12749 | |
| 12750 | # configure is writing to config.log, and then calls config.status. |
| 12751 | # config.status does its own redirection, appending to config.log. |
| 12752 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12753 | # by configure, so config.status won't be able to write to it; its |
| 12754 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12755 | # effectively closing config.log, so it can be properly (re)opened and |
| 12756 | # appended to by config.status. When coming back to configure, we |
| 12757 | # need to make the FD available again. |
| 12758 | if test "$no_create" != yes; then |
| 12759 | ac_cs_success=: |
| 12760 | ac_config_status_args= |
| 12761 | test "$silent" = yes && |
| 12762 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12763 | exec 5>/dev/null |
| 12764 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12765 | exec 5>>config.log |
| 12766 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12767 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12768 | $ac_cs_success || as_fn_exit $? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12769 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12770 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12772 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12773 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12774 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12775 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |